diff options
Diffstat (limited to 'src/document')
| -rw-r--r-- | src/document/signatures.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/document/signatures.rs b/src/document/signatures.rs index a8b4713..da2df03 100644 --- a/src/document/signatures.rs +++ b/src/document/signatures.rs @@ -147,8 +147,11 @@ impl<'de> serde::Deserialize<'de> for SignEvery { } } -/// Signatures a sync message carries at most (`for_changes`, `latest_each`). -pub(crate) const MAX_PER_MESSAGE: usize = 256; +/// Signatures a sync message carries at most (`for_changes`, `latest_each`), as many +/// as wait for their changes (`MAX_PENDING`): 384 KiB of them. A whole document pulled, +/// or a delta, carries each actor's latest, and an actor is a node's run: an epoch with +/// more runs writing than this leaves some unvouched for in such a transfer. +pub(crate) const MAX_PER_MESSAGE: usize = MAX_PENDING; /// A signature as messages and the document file carry it (`pack`): the change's /// hash (32 bytes), then the signature (64). pub(crate) const PACKED: usize = 32 + 64; |
