diff options
| author | tv <tv@krebsco.de> | 2026-11-29 04:00:43 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-29 04:00:43 +0000 |
| commit | 2ae7562083f5f96490f90e9398762cf6a024d51e (patch) | |
| tree | 5e23c6bda5682e39413fe557348023cc4204d487 /src/swarm/flood.rs | |
| parent | f497cf6ef14de8204bc1edec078116593d791b97 (diff) | |
document: a unit's name, which the swarm passes on by
document::UnitId: the name of a unit of a document as its kind has it,
an Automerge change's hash. What the swarm announces, forwards along
trees, tells a peer it refused and drops is named so (the
dissemination, relay, refusals, AppState::drop_taken), and the session
is told so what a peer gets from another; a change's hash it is where
the document is asked, and on the wire.
Diffstat (limited to 'src/swarm/flood.rs')
| -rw-r--r-- | src/swarm/flood.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/swarm/flood.rs b/src/swarm/flood.rs index 39cb096..2883f80 100644 --- a/src/swarm/flood.rs +++ b/src/swarm/flood.rs @@ -8,7 +8,7 @@ use async_trait::async_trait; -use crate::document::ChangeHash; +use crate::document::UnitId; use crate::state::AppState; use crate::swarm::dissemination::{Dissemination, pass_on}; use crate::swarm::topology; @@ -41,7 +41,7 @@ impl Dissemination for Flood { state: &AppState, writer: u64, from: &str, - changes: &[ChangeHash], + changes: &[UnitId], ) -> Option<Plan> { let plan = self.plan(state, writer).await?; Some(pass_on(state, writer, from, changes, plan).await) @@ -55,7 +55,7 @@ impl Dissemination for Flood { peer: &str, writer: Option<u64>, carried: bool, - authors: &[(String, Vec<ChangeHash>)], + authors: &[(String, Vec<UnitId>)], ) { let _ = peer; if writer.is_some() && carried && authors.is_empty() { |
