Commit 8c0f59e5 authored by Christopher Schinnerl's avatar Christopher Schinnerl

replace 20 with constant

parent 08a72e40
......@@ -39,6 +39,10 @@ const (
// threadDepth is how deep the ThreadType will track calling files and
// calling lines
threadDepth = 3
// fileListRoutines is the number of goroutines used in FileList to load
// siafile metadata from disk
fileListRoutines = 20
)
var (
......
......@@ -401,8 +401,8 @@ func (sfs *SiaFileSet) FileList(offlineMap map[string]bool, goodForRenewMap map[
}
wg.Done()
}
// spin up 20 threads
for i := 0; i < 20; i++ {
// spin up some threads
for i := 0; i < fileListRoutines; i++ {
wg.Add(1)
go worker()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment