mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: Collab wasm build (#4297)
* fix: ci * fix: ci * fix: build * chore: bump collab
This commit is contained in:
@ -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))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user