Skip to content

Commit

Permalink
chore: increase quotes fetch sample to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
mickvandijke authored and jacderida committed Jan 30, 2025
1 parent adb8930 commit 2b2f9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ant-networking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl Network {

// consider data to be already paid for if 1/2 of the close nodes already have it
let mut peer_already_have_it = 0;
let enough_peers_already_have_it = close_nodes.len() / 2;
let enough_peers_already_have_it = CLOSE_GROUP_SIZE / 2 + 1;

let mut peers_returned_error = 0;

Expand Down Expand Up @@ -1092,7 +1092,7 @@ impl Network {
);
}

let expanded_close_group = CLOSE_GROUP_SIZE + CLOSE_GROUP_SIZE / 2;
let expanded_close_group = CLOSE_GROUP_SIZE * 2;
let closest_peers = sort_peers_by_address(&closest_peers, key, expanded_close_group)?;
Ok(closest_peers.into_iter().cloned().collect())
}
Expand Down

0 comments on commit 2b2f9c3

Please sign in to comment.