diff options
Diffstat (limited to 'src/swarm/topology')
| -rw-r--r-- | src/swarm/topology/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swarm/topology/mod.rs b/src/swarm/topology/mod.rs index f2538cc..df9a27e 100644 --- a/src/swarm/topology/mod.rs +++ b/src/swarm/topology/mod.rs @@ -161,7 +161,7 @@ pub(crate) fn swarm_ways( what: &str, own: T, ) -> T { - match crate::document::store::read_path(doc, path) { + match crate::document::view::read_path(doc, path) { Ok(Some(value)) => match serde_json::from_value(value.clone()) { Ok(recorded) => recorded, Err(_) => { @@ -686,7 +686,7 @@ pub(crate) fn neighbours_path() -> Vec<String> { /// document has none (a swarm from before it was recorded), or one that isn't a number /// from 2 to `MAX_NEIGHBOURS`, this node's own (`own`). pub(crate) fn swarm_neighbours(doc: &crate::document::Document, own: usize) -> usize { - match crate::document::store::read_path(doc, &neighbours_path()) { + match crate::document::view::read_path(doc, &neighbours_path()) { Ok(Some(value)) => match value.as_u64() { Some(k) if (2..=MAX_NEIGHBOURS).contains(&k) => k as usize, _ => { |
