From a51be72029c84f89ab2c5335cb714ba6f50c6bfc Mon Sep 17 00:00:00 2001 From: Brannon King Date: Fri, 27 Aug 2021 13:04:37 -0400 Subject: [PATCH] fix worker count --- claimtrie/claimtrie.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/claimtrie/claimtrie.go b/claimtrie/claimtrie.go index 78fc40aa..8acf71ef 100644 --- a/claimtrie/claimtrie.go +++ b/claimtrie/claimtrie.go @@ -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()