Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update docs (#2159)

Leendert de Borst6e4836482ab9
diff --git a/core/rust/src/vault_sync/engine.rs b/core/rust/src/vault_sync/engine.rs
index 8010a5732..eea959f54 100644
--- a/core/rust/src/vault_sync/engine.rs
+++ b/core/rust/src/vault_sync/engine.rs
@@ -16,6 +16,9 @@ use super::{db, http, keys, legacy, version};
use crate::crypto;
/// How many times a chain of syncs may re-sync after an outdated push before giving up.
+/// This is a auto-healing mechanism in case two clients are pushing at the same time, which could
+/// result in a race condition. The sync mechanism retries to pull/merge/push up to 3 times if the
+/// server refuses any write as outdated.
const MAX_OUTDATED_RESYNCS: u32 = 3;
/// The pending action type this build carries out.