diff options
Diffstat (limited to 'src/swarm/blob.rs')
| -rw-r--r-- | src/swarm/blob.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/swarm/blob.rs b/src/swarm/blob.rs index c13bcd9..ec99c93 100644 --- a/src/swarm/blob.rs +++ b/src/swarm/blob.rs @@ -1,12 +1,12 @@ //! Blobs: content-addressed bytes fetched in chunks from several peers at once. //! -//! Large transfers can't go in one Mycelium message (it must arrive within Mycelium's -//! five-minute deadline), and a blob every node holds identically can come from many -//! of them. A blob is an Automerge change by its hash (e.g. an epoch's snapshot change, -//! which every node on that epoch holds byte for byte), or content by its BLAKE3 hash -//! (e.g. the new document of a `replace` or `import` remake), or the changes between two -//! sets of heads (a delta: what a peer lacks, when one sync message would be too large; -//! `swarm::sync`). +//! Large transfers can't go in one message (it must arrive within the transport's +//! delivery limit, five minutes for Mycelium), and a blob every node holds identically +//! can come from many of them. A blob is an Automerge change by its hash (e.g. an +//! epoch's snapshot change, which every node on that epoch holds byte for byte), or +//! content by its BLAKE3 hash (e.g. the new document of a `replace` or `import` +//! remake), or the changes between two sets of heads (a delta: what a peer lacks, when +//! one sync message would be too large; `swarm::sync`). //! //! * Serving: a request without chunks gets the manifest (size, chunk size, a BLAKE3 //! hash per chunk); one with chunks gets each chunk as a message of its own. A node @@ -85,7 +85,7 @@ pub(crate) struct Blobs { /// A sync message larger than this many chunks is sent as a delta blob instead /// (`swarm::sync`): below it, a blob costs more round trips than it saves; above it, a /// lost message costs too much to send again whole, and a slow link may not deliver it -/// within Mycelium's deadline. +/// within the transport's delivery limit. const DELTA_THRESHOLD_CHUNKS: usize = 16; /// The largest sync message accepted: the threshold of a sender with the largest chunks |
