Skip to content

Commit

Permalink
feat: further expand close group get to close group x 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
grumbach committed Dec 13, 2024
1 parent 2ea9e13 commit bae0a60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ant-networking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,8 @@ impl Network {
);
}

let closest_peers = sort_peers_by_address(&closest_peers, key, CLOSE_GROUP_SIZE + 1)?;
let expanded_close_group = CLOSE_GROUP_SIZE + 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 bae0a60

Please sign in to comment.