chore: remove gc check

This commit is contained in:
Bartosz Sypytkowski 2024-12-23 14:57:52 +01:00
parent 35430c6be2
commit 837f4de8f3
1 changed files with 0 additions and 5 deletions

View File

@ -1129,11 +1129,6 @@ impl CollabPersister {
collab: &mut Collab, collab: &mut Collab,
message_id: MessageId, message_id: MessageId,
) -> Result<(), RealtimeError> { ) -> 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 // 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. // perform snapshot at the same time, so we'll use lease to let only one of them atm.
if let Some(mut lease) = self if let Some(mut lease) = self