feat: adding suffix for user data folder when current cloud type is appflowy cloud (#3918)

* fix: load database fail caused by spawning long run task

* chore: yield long run task

* chore: fmt

* chore: update client api

* feat: copy data between server

* ci: fix af cloud test
This commit is contained in:
Nathan.fooo
2023-11-12 18:00:07 +08:00
committed by GitHub
parent 3c7e636b65
commit 7eb20b232a
51 changed files with 559 additions and 386 deletions

View File

@ -195,6 +195,8 @@ impl AppFlowyCollabBuilder {
{
let cloud_storage_type = self.cloud_storage.read().await.storage_source();
let collab_object = self.collab_object(uid, object_id, object_type)?;
let span = tracing::span!(tracing::Level::TRACE, "collab_builder", object_id = %object_id);
let _enter = span.enter();
match cloud_storage_type {
CollabSource::AFCloud => {
#[cfg(feature = "appflowy_cloud_integrate")]
@ -259,6 +261,7 @@ impl AppFlowyCollabBuilder {
}
collab.lock().initialize();
trace!("collab initialized: {}", object_id);
Ok(collab)
}
}