Skip to content

Commit

Permalink
Fix slow downloading of pieces due to being stuck on faulty peers for…
Browse files Browse the repository at this point in the history
… a long time
  • Loading branch information
nazar-pc committed Nov 17, 2024
1 parent 00fe555 commit 0943923
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/subspace-networking/src/utils/piece_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,10 @@ where
if let Some(peers) = pieces_to_download.get_mut(&piece_index) {
peers.extend(Vec::from(closest_peers));
}

// No need to ask this peer again if they didn't have the piece we expected, or
// they claimed to have earlier
continue;
}
}

Expand Down

0 comments on commit 0943923

Please sign in to comment.