aboutsummaryrefslogtreecommitdiffstats
path: root/src/document/store.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/document/store.rs')
-rw-r--r--src/document/store.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/document/store.rs b/src/document/store.rs
index 0a3c8ad..45d46cd 100644
--- a/src/document/store.rs
+++ b/src/document/store.rs
@@ -94,6 +94,10 @@ pub(crate) enum StoreError {
/// An index past a list's end (`length` items).
#[error("index {index} is past the list's end ({length} items)")]
PastTheEnd { index: usize, length: usize },
+ /// The node is rejoining a newer epoch: no writes until it is done
+ /// (`Replica::writable`).
+ #[error("the node is rejoining a newer epoch; writes are refused until it is done")]
+ Rejoining,
#[error(transparent)]
Doc(#[from] automerge::AutomergeError),
#[error(transparent)]