From 01e5e08be2a498a34032a1301c7fba4692c16280 Mon Sep 17 00:00:00 2001 From: Viacheslav Gonkivskyi Date: Fri, 23 Feb 2024 12:31:38 +0200 Subject: [PATCH] add comment --- p2p/session.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/p2p/session.go b/p2p/session.go index 70cce86f..505759ff 100644 --- a/p2p/session.go +++ b/p2p/session.go @@ -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) }