From 837f4de8f3c3f47193d5356560cb8f88bfed5317 Mon Sep 17 00:00:00 2001 From: Bartosz Sypytkowski Date: Mon, 23 Dec 2024 14:57:52 +0100 Subject: [PATCH] chore: remove gc check --- services/appflowy-collaborate/src/group/group_init.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/services/appflowy-collaborate/src/group/group_init.rs b/services/appflowy-collaborate/src/group/group_init.rs index faf4978d..a3d23039 100644 --- a/services/appflowy-collaborate/src/group/group_init.rs +++ b/services/appflowy-collaborate/src/group/group_init.rs @@ -1129,11 +1129,6 @@ impl CollabPersister { collab: &mut Collab, message_id: MessageId, ) -> Result<(), RealtimeError> { - if !collab.get_awareness().doc().skip_gc() { - return Err(RealtimeError::UnexpectedData( - "tried to save history for snapshot with GC turned on", - )); - } // try to acquire snapshot lease - it's possible that multiple web services will try to // perform snapshot at the same time, so we'll use lease to let only one of them atm. if let Some(mut lease) = self