chore: support skip gc (#4926)

* chore: support skip gc

* chore: fix test
This commit is contained in:
Nathan.fooo
2024-03-20 14:34:50 +08:00
committed by GitHub
parent 822d62b562
commit d19fa5a34a
18 changed files with 164 additions and 150 deletions

View File

@ -669,6 +669,7 @@ fn default_workspace_doc_state(collab_object: &CollabObject) -> Vec<u8> {
CollabOrigin::Empty,
&collab_object.object_id,
vec![],
false,
));
let workspace = Workspace::new(workspace_id, "My workspace".to_string(), collab_object.uid);
let folder = Folder::create(collab_object.uid, collab, None, FolderData::new(workspace));

View File

@ -122,7 +122,8 @@ pub async fn print_encryption_folder_snapshot(
.pop()
.unwrap();
let collab = Arc::new(
MutexCollab::new_with_doc_state(CollabOrigin::Empty, folder_id, snapshot.blob, vec![]).unwrap(),
MutexCollab::new_with_doc_state(CollabOrigin::Empty, folder_id, snapshot.blob, vec![], false)
.unwrap(),
);
let folder_data = Folder::open(uid, collab, None)
.unwrap()