aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/host.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/host.rs')
-rw-r--r--src/state/host.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state/host.rs b/src/state/host.rs
index 357814e..66bb71c 100644
--- a/src/state/host.rs
+++ b/src/state/host.rs
@@ -105,7 +105,7 @@ impl AppState {
/// second member to say so (`peer` the first, `why` its rules' reason), where it has
/// another neighbour: its rules and one peer's word might both be off, the swarm's
/// not. Two members colluding pass it; it guards against one.
- pub(crate) async fn drop_taken(&self, root: ChangeHash, peer: &str, why: &str) {
+ pub(crate) async fn drop_taken(&self, root: crate::document::UnitId, peer: &str, why: &str) {
/// Changes a drop takes, at most, on one peer's word: more, or more than a tenth
/// of the document (past `SMALL_DROP`), wait for another's.
const BIG_DROP: usize = 100;
@@ -125,7 +125,7 @@ impl AppState {
return None;
}
use crate::document::dropping::{Kept, Tainted};
- let tainted = match Tainted::of(&replica.doc, root)? {
+ let tainted = match Tainted::of(&replica.doc, root.into())? {
Ok(tainted) => tainted,
Err(Kept::Root) => {
error!(change = %root, "Asked to drop the epoch's root; kept it");
@@ -144,7 +144,7 @@ impl AppState {
let mut screening = state.screening.lock_or_recover();
let said = screening
.of(replica.epoch_seq)
- .hold_drop(root, &peer);
+ .hold_drop(root.into(), &peer);
if said < 2 {
error!(change = %root, peer = %peer, changes = count, why = %why, "A peer says we hold a change the swarm's rules refuse, and ours do too, but dropping it takes much: waiting for another member to say so");
return None;