Skip to content

Commit

Permalink
Merge pull request #2665 from mickvandijke/chore-increase-quotes-samp…
Browse files Browse the repository at this point in the history
…le-size-to-10

chore: increase quotes fetch sample to `10`
  • Loading branch information
jacderida authored Jan 24, 2025
2 parents a68c273 + 508bd27 commit b322de7
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 @@ -409,7 +409,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;

// loop over responses
let mut all_quotes = vec![];
Expand Down Expand Up @@ -1115,7 +1115,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 b322de7

Please sign in to comment.