chore: Collab wasm build (#4297)

* fix: ci

* fix: ci

* fix: build

* chore: bump collab
This commit is contained in:
Nathan.fooo
2024-01-05 00:05:38 +08:00
committed by GitHub
parent eac878d563
commit 5a87229fe9
35 changed files with 308 additions and 381 deletions

View File

@ -17,7 +17,7 @@ use collab_integrate::collab_builder::{
AppFlowyCollabBuilder, CollabCloudPluginProvider, CollabPluginProviderContext,
CollabPluginProviderType,
};
use collab_integrate::RocksCollabDB;
use collab_integrate::CollabKVDB;
use flowy_document::document::MutexDocument;
use flowy_document::manager::{DocumentManager, DocumentUser};
use flowy_document_deps::cloud::*;
@ -54,7 +54,7 @@ impl Deref for DocumentTest {
}
pub struct FakeUser {
collab_db: Arc<RocksCollabDB>,
collab_db: Arc<CollabKVDB>,
}
impl FakeUser {
@ -63,7 +63,7 @@ impl FakeUser {
let tempdir = TempDir::new().unwrap();
let path = tempdir.into_path();
let collab_db = Arc::new(RocksCollabDB::open(path).unwrap());
let collab_db = Arc::new(CollabKVDB::open(path).unwrap());
Self { collab_db }
}
@ -82,7 +82,7 @@ impl DocumentUser for FakeUser {
Ok(None)
}
fn collab_db(&self, _uid: i64) -> Result<std::sync::Weak<RocksCollabDB>, FlowyError> {
fn collab_db(&self, _uid: i64) -> Result<std::sync::Weak<CollabKVDB>, FlowyError> {
Ok(Arc::downgrade(&self.collab_db))
}
}