Skip to content

Commit

Permalink
Merge pull request #1760 from subspace/improve-dsn-sync-effectiveness
Browse files Browse the repository at this point in the history
Improve sync effectiveness by checking last 2 segment headers only
  • Loading branch information
nazar-pc authored Aug 7, 2023
2 parents da7d420 + d75ef21 commit 588708f
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 588708f

Please sign in to comment.