aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/coordinator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake/coordinator.rs')
-rw-r--r--src/remake/coordinator.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remake/coordinator.rs b/src/remake/coordinator.rs
index 50ed4a3..314cd87 100644
--- a/src/remake/coordinator.rs
+++ b/src/remake/coordinator.rs
@@ -38,7 +38,7 @@ use super::snapshot;
use super::vote;
use crate::document::meta::{self, REMAKES, VOTES};
use crate::document::store::StoreError;
-use crate::swarm::sync::paths_related;
+use crate::document::store::paths_related;
const TICK: Duration = Duration::from_secs(1);
@@ -178,7 +178,7 @@ async fn commit<H: Host>(host: &H, id: &str, record: &Record) -> Result<(), Stor
};
// Clone under the read lock, build without any lock.
- let mut copy = host.read_doc(|doc| doc.clone()).await;
+ let copy = host.read_doc(|doc| doc.clone()).await;
// A base left to the commit is what this node has now. Every node that sees the
// decision has it too: the decision change depends on it.
let (base, fixed_now) = match &record.proposal.base_heads {
@@ -195,7 +195,7 @@ async fn commit<H: Host>(host: &H, id: &str, record: &Record) -> Result<(), Stor
};
let base_heads = fixed_now.then(|| records::encode_heads(&request.base_heads));
request.content = content;
- let mut snapshot = match snapshot::build_detached(copy, request).await {
+ let snapshot = match snapshot::build_detached(copy, request).await {
Ok((snapshot, _copy)) => snapshot,
Err(error) => {
return decide_abort(host, id, format!("snapshot build failed: {error}")).await;