Skip to content

Commit

Permalink
handle context.Canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Feb 6, 2025
1 parent 85ae713 commit 022abe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (f *BlockFetcher) receive(
withTimeout, ctxCancel := context.WithTimeout(ctx, 10*time.Second)
signedBlock, err := f.GetSignedBlock(withTimeout, resp.Height)
ctxCancel()
if err != nil {
if err != nil && !errors.Is(err, context.Canceled) {
log.Errorw("fetcher: error receiving signed block", "height", resp.Height, "err", err.Error())
continue
}
Expand Down

0 comments on commit 022abe3

Please sign in to comment.