aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/switch.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-01 19:35:20 +0100
committertv <tv@krebsco.de>2026-11-01 19:35:20 +0100
commit5640bacf735c6728acf4bc22217b0c07ac4bf7f9 (patch)
treee1cdf1a912ca90d24d6a8100263edc0c5298305e /src/remake/switch.rs
parent2ac2b0e2b08f14be07c46b3fd9a516a64e9933fb (diff)
document: allow writes during rejoin
Diffstat (limited to 'src/remake/switch.rs')
-rw-r--r--src/remake/switch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remake/switch.rs b/src/remake/switch.rs
index 7d6611d..4c72b39 100644
--- a/src/remake/switch.rs
+++ b/src/remake/switch.rs
@@ -306,7 +306,7 @@ pub(super) async fn swap_in<H: Host>(
let late_stats = std::sync::Arc::new(std::sync::Mutex::new(ReplayStats::default()));
let late_out = std::sync::Arc::clone(&late_stats);
let old = host
- .switch_epoch(target, true, move |live| {
+ .switch_epoch(target, move |live| {
// Only one worker switches, but be sure the copy still describes the live document.
if !crate::document::changes::missing(live, &copy_heads).is_empty() {
return Err("the document was replaced while preparing the switch".to_owned());