From 6074b7e546087f2e7ef47d8f4c0f45c9789c42ab Mon Sep 17 00:00:00 2001 From: Seednode Date: Tue, 9 Jan 2024 17:17:26 -0600 Subject: [PATCH] Re-add microsecond delay to walkPath() invocations --- cmd/files.go | 5 +++++ cmd/root.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/files.go b/cmd/files.go index 6544379..b8b07cb 100644 --- a/cmd/files.go +++ b/cmd/files.go @@ -326,6 +326,11 @@ func walkPath(path string, fileChannel chan<- string, wg0 *sync.WaitGroup, stats }() wg1.Wait() + + // Without this, file counts randomly vary. + // Pending further debugging, likely relating + // to stats channel close timing issues. + time.Sleep(1 * time.Microsecond) } func scanPaths(paths []string, sort string, index *fileIndex, formats types.Types, errorChannel chan<- error) []string { diff --git a/cmd/root.go b/cmd/root.go index e8c02c7..327a98c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,7 +17,7 @@ import ( const ( AllowedCharacters string = `^[A-z0-9.\-_]+$` - ReleaseVersion string = "5.0.0" + ReleaseVersion string = "5.0.1" ) var (