Skip to content

Commit

Permalink
Update chain/network/src/routing.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
  • Loading branch information
pmnoxx and matklad authored Feb 2, 2021
1 parent a1501a3 commit 2921ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/network/src/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ impl Graph {
let mut peer_set: HashSet<PeerId> = HashSet::new();
if let Some(neighbors) = self.adjacency.get(&source_id) {
let mut id = 0;
for neighbor in neighbors {
for (id, neighbor) in neighbors.iter().enumerate().take(128) {
if id >= 128 {
break;
}
Expand Down

0 comments on commit 2921ebd

Please sign in to comment.