Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Feb 23, 2024
1 parent 0f3618a commit 01e5e08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions p2p/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ func (s *session[H]) doRequest(
"err", err,
"peer", stat.peerID,
)
// ErrNotFound is not a critical error here. It means
// that peer hasn't synced the requested range yet.
// Returning peer to the queue, so it could serve another ranges.
if errors.Is(err, header.ErrNotFound) {
s.queue.push(stat)
}
Expand Down

0 comments on commit 01e5e08

Please sign in to comment.