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

Commit e4e4239

Browse files
rphmeierordian
andauthored
Update node/network/protocol/src/grid_topology.rs
Co-authored-by: Andronik <write@reusable.software>
1 parent 92475f0 commit e4e4239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/network/protocol/src/grid_topology.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl SessionGridTopology {
8080

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

0 commit comments

Comments
 (0)