Skip to content

Commit

Permalink
fix: dont use cancelled context (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloknerurkar authored Jul 10, 2024
1 parent 03d57f6 commit 01ddada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/pkg/rpc/bidder/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func (s *Service) CancelAutoDeposit(
}
}
if doWithdraw {
opts, err := s.optsGetter(ctx)
opts, err := s.optsGetter(context.Background())
if err != nil {
s.logger.Error("getting transact opts", "error", err)
continue
Expand All @@ -407,7 +407,7 @@ func (s *Service) CancelAutoDeposit(
s.logger.Error("withdraw from windows", "error", err)
return
}
receipt, err := s.watcher.WaitForReceipt(ctx, txn)
receipt, err := s.watcher.WaitForReceipt(context.Background(), txn)
if err != nil {
s.logger.Error("waiting for receipt", "error", err)
return
Expand Down

0 comments on commit 01ddada

Please sign in to comment.