diff options
Diffstat (limited to 'src/swarm/topology')
| -rw-r--r-- | src/swarm/topology/graph.rs | 2 | ||||
| -rw-r--r-- | src/swarm/topology/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/swarm/topology/graph.rs b/src/swarm/topology/graph.rs index fb33170..5401506 100644 --- a/src/swarm/topology/graph.rs +++ b/src/swarm/topology/graph.rs @@ -203,7 +203,7 @@ pub(crate) fn pair_score(a: &str, b: &str) -> u64 { } /// What a member contributes to its pair scores: computed once per member. -pub(super) fn pair_key(member: &str) -> u64 { +pub(crate) fn pair_key(member: &str) -> u64 { let digest = hash(PAIR_LABEL, &[member]); u64::from_be_bytes(digest[..8].try_into().expect("8 bytes")) } diff --git a/src/swarm/topology/mod.rs b/src/swarm/topology/mod.rs index e5dacdd..1c1a6c4 100644 --- a/src/swarm/topology/mod.rs +++ b/src/swarm/topology/mod.rs @@ -35,8 +35,8 @@ use crate::swarm::members; mod graph; -pub(crate) use graph::pair_score; use graph::*; +pub(crate) use graph::{pair_key, pair_score}; /// This node's current neighbours, and the member list they were computed from. #[derive(Debug, Default)] |
