Skip to content

Commit

Permalink
defer reportWg
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Nov 5, 2024
1 parent adc9c1d commit 630ea8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/client/transaction_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ func (txSender *TransactionSender[TX, RESULT, CHAIN_ID, RPC]) SendTransaction(ct
txSender.wg.Add(1)
reportWg.Add(1)
go func() {
defer reportWg.Done()
txSender.reportSendTxAnomalies(tx, txResultsToReport)
reportWg.Done()
}()

return txSender.collectTxResults(ctx, tx, healthyNodesNum, txResults)
Expand Down

0 comments on commit 630ea8d

Please sign in to comment.