Skip to content

Commit

Permalink
core.SigningOrchestrator race fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
marino39 committed Jul 21, 2023
1 parent cf51836 commit 6037a0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ func SigningOrchestrator(ctx context.Context, signers map[common.Address]uint16,
var signatures = make([]SignerSignature, 0, len(signers))
var signaturesExpected = len(signers)
for signer := range signers {
rSigner := signer

wg.Add(1)
go func(signer common.Address) {
defer wg.Done()
Expand Down Expand Up @@ -194,7 +196,7 @@ func SigningOrchestrator(ctx context.Context, signers map[common.Address]uint16,
cond.Broadcast()
break
}
}(signer)
}(rSigner)
}

wg.Wait()
Expand Down

0 comments on commit 6037a0e

Please sign in to comment.