aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/dissemination.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/swarm/dissemination.rs')
-rw-r--r--src/swarm/dissemination.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/swarm/dissemination.rs b/src/swarm/dissemination.rs
index 4c15d0f..11d9295 100644
--- a/src/swarm/dissemination.rs
+++ b/src/swarm/dissemination.rs
@@ -11,7 +11,7 @@
use async_trait::async_trait;
use tracing::trace;
-use crate::document::ChangeHash;
+use crate::document::UnitId;
use crate::state::AppState;
use crate::swarm::tree::Plan;
@@ -34,7 +34,7 @@ pub(crate) trait Dissemination: Send + Sync + 'static {
state: &AppState,
writer: u64,
from: &str,
- changes: &[ChangeHash],
+ changes: &[UnitId],
) -> Option<Plan>;
/// What a sync message from `peer` says about how well this works (`/admin/stats`):
@@ -46,7 +46,7 @@ pub(crate) trait Dissemination: Send + Sync + 'static {
peer: &str,
writer: Option<u64>,
carried: bool,
- authors: &[(String, Vec<ChangeHash>)],
+ authors: &[(String, Vec<UnitId>)],
);
/// `peer` asks us to send it `writer`'s changes at once (`eager`, a GRAFT) or to
@@ -59,7 +59,7 @@ pub(crate) trait Dissemination: Send + Sync + 'static {
/// `peer` told us of `heads` we lack (a STATUS: an announcement, or its keepalive's),
/// for a way that minds which neighbour has changes first (PlumTree). By default
/// nothing.
- fn announced(&self, peer: &str, heads: &[ChangeHash]) {
+ fn announced(&self, peer: &str, heads: &[UnitId]) {
let _ = (peer, heads);
}
@@ -83,7 +83,7 @@ pub(crate) async fn pass_on(
state: &AppState,
writer: u64,
from: &str,
- changes: &[ChangeHash],
+ changes: &[UnitId],
mut plan: Plan,
) -> Plan {
if !changes.is_empty() {