Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update node/network/protocol/src/grid_topology.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andronik <write@reusable.software>
  • Loading branch information
rphmeier and ordian authored Oct 12, 2022
1 parent 92475f0 commit e4e4239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/network/protocol/src/grid_topology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl SessionGridTopology {

/// Produces the outgoing routing logic for a particular peer.
///
/// This fails if the validator index is out of bounds.
/// Returns `None` if the validator index is out of bounds.
pub fn compute_grid_neighbors_for(&self, v: ValidatorIndex) -> Option<GridNeighbors> {
let shuffled_val_index = *self.shuffled_indices.get(v.0 as usize)?;
let neighbors = matrix_neighbors(shuffled_val_index, self.shuffled_indices.len())?;
Expand Down

0 comments on commit e4e4239

Please sign in to comment.