Re-add microsecond delay to walkPath() invocations
This commit is contained in:
parent
431de92bbb
commit
6074b7e546
|
@ -326,6 +326,11 @@ func walkPath(path string, fileChannel chan<- string, wg0 *sync.WaitGroup, stats
|
||||||
}()
|
}()
|
||||||
|
|
||||||
wg1.Wait()
|
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 {
|
func scanPaths(paths []string, sort string, index *fileIndex, formats types.Types, errorChannel chan<- error) []string {
|
||||||
|
|
|
@ -17,7 +17,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AllowedCharacters string = `^[A-z0-9.\-_]+$`
|
AllowedCharacters string = `^[A-z0-9.\-_]+$`
|
||||||
ReleaseVersion string = "5.0.0"
|
ReleaseVersion string = "5.0.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue