fix worker count

This commit is contained in:
Brannon King 2021-08-27 13:04:37 -04:00
parent 79987722bb
commit a51be72029

View file

@ -440,7 +440,7 @@ func (ct *ClaimTrie) makeNameHashNext(names [][]byte, all bool) chan NameHashNex
if threads < 1 {
threads = 1
}
for threads >= 0 {
for threads > 0 {
threads--
wg.Add(1)
go hashComputationWorker()