Skip to content

Commit

Permalink
Added constant
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Oct 23, 2024
1 parent 52b3c25 commit 18e3926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion direct.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ func (d *direct) findWorkingMasquerades() {

func (d *direct) vetGroup(start, batchSize int, successful *atomic.Uint32) {
var wg sync.WaitGroup
for j := start; j < start+batchSize && j < len(d.masquerades); j++ {
masqueradeSize := len(d.masquerades)
for j := start; j < start+batchSize && j < masqueradeSize; j++ {
wg.Add(1)
go func(m MasqueradeInterface) {
defer wg.Done()
Expand Down

0 comments on commit 18e3926

Please sign in to comment.