Skip to content

Commit

Permalink
Improve sync effectiveness by checking last 2 segment headers only
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Aug 4, 2023
1 parent 6207815 commit d75ef21
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ impl SegmentHeaderHandler {
.send_generic_request(
peer_id,
SegmentHeaderRequest::LastSegmentHeaders {
segment_header_number: SEGMENT_HEADER_NUMBER_PER_REQUEST,
// Request 2 top segment headers, accounting for situations when new
// segment header was just produced and not all nodes have it
segment_header_number: 2,
},
)
.await;
Expand Down

0 comments on commit d75ef21

Please sign in to comment.