Skip to content

Commit

Permalink
fix visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborschneider committed Oct 7, 2024
1 parent 0c2d8d5 commit 44e2810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpsim/src/event/rand_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ impl<P: Prefix> GeoTimingModel<P> {
}

/// Get the distance between two routers
pub fn get_distance(&mut self, src: RouterId, dst: RouterId) -> Option<f64> {
pub fn get_distance(&self, src: RouterId, dst: RouterId) -> Option<f64> {
self.distances.get(&(src, dst)).map(|x| x.into_inner())
}

Expand Down

0 comments on commit 44e2810

Please sign in to comment.