Re-add microsecond delay to walkPath() invocations

This commit is contained in:
Seednode 2024-01-09 17:17:26 -06:00
parent 431de92bbb
commit 6074b7e546
2 changed files with 6 additions and 1 deletions

View File

@ -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 {

View File

@ -17,7 +17,7 @@ import (
const (
AllowedCharacters string = `^[A-z0-9.\-_]+$`
ReleaseVersion string = "5.0.0"
ReleaseVersion string = "5.0.1"
)
var (