Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
comment out ack code for later use.
appflowy22c8850ceaf7
diff --git a/frontend/Makefile.toml b/frontend/Makefile.tomlindex 33b1833615..9f3d9ea57f 100644--- a/frontend/Makefile.toml+++ b/frontend/Makefile.toml@@ -15,7 +15,7 @@ CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = trueCARGO_MAKE_CRATE_FS_NAME = "dart_ffi"CARGO_MAKE_CRATE_NAME = "dart-ffi"VERSION = "0.0.2"-FEATURES = "flutter,http_server"+FEATURES = "flutter"PRODUCT_NAME = "AppFlowy"#CRATE_TYPE: https://doc.rust-lang.org/reference/linkage.htmlCRATE_TYPE = "staticlib"diff --git a/frontend/rust-lib/flowy-sync/src/rev_manager.rs b/frontend/rust-lib/flowy-sync/src/rev_manager.rsindex 366ce22129..04e367ee47 100755--- a/frontend/rust-lib/flowy-sync/src/rev_manager.rs+++ b/frontend/rust-lib/flowy-sync/src/rev_manager.rs@@ -105,12 +105,13 @@ impl RevisionManager {#[tracing::instrument(level = "debug", skip(self), err)]pub async fn ack_revision(&self, rev_id: i64) -> Result<(), FlowyError> {- if self.revision_sync_seq.ack(&rev_id).await.is_ok() {- self.revision_cache.ack(rev_id).await;-- #[cfg(feature = "flowy_unit_test")]- let _ = self.revision_ack_notifier.send(rev_id);- }+ // For the moment, we comment out the following code in order to cause sync bugs.+ // if self.revision_sync_seq.ack(&rev_id).await.is_ok() {+ // self.revision_cache.ack(rev_id).await;+ //+ // #[cfg(feature = "flowy_unit_test")]+ // let _ = self.revision_ack_notifier.send(rev_id);+ // }Ok(())}diff --git a/shared-lib/flowy-collaboration/src/synchronizer.rs b/shared-lib/flowy-collaboration/src/synchronizer.rsindex b6c10452ed..75eee6b603 100644--- a/shared-lib/flowy-collaboration/src/synchronizer.rs+++ b/shared-lib/flowy-collaboration/src/synchronizer.rs@@ -128,7 +128,7 @@ where}Ordering::Equal => {// Do nothing- tracing::warn!("Applied {} revision rev_id is the same as cur_rev_id", self.object_id);+ tracing::trace!("Applied {} revision rev_id is the same as cur_rev_id", self.object_id);}Ordering::Greater => {// The client delta is outdated. Transform the client revision delta and then