Skip to content

Commit

Permalink
suppress warning when aborting tx receipt loading via canceling context
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Dec 16, 2024
1 parent aa242d4 commit 077cc82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions txbuilder/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ func (pool *TxPool) loadTransactionReceipt(ctx context.Context, tx *types.Transa
return receipt
}

if ctx.Err() != nil {
return nil
}

if retryCount > 2 {
logrus.WithFields(logrus.Fields{
"client": client.GetName(),
Expand Down

0 comments on commit 077cc82

Please sign in to comment.