Skip to content

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.

fix warnings.

appflowyb25db57fca12
diff --git a/frontend/rust-lib/flowy-document/src/services/doc/revision/cache/memory.rs b/frontend/rust-lib/flowy-document/src/services/doc/revision/cache/memory.rs
index 9c8df20824..0ea5242789 100644
--- a/frontend/rust-lib/flowy-document/src/services/doc/revision/cache/memory.rs
+++ b/frontend/rust-lib/flowy-document/src/services/doc/revision/cache/memory.rs
@@ -39,7 +39,7 @@ impl RevisionMemoryCache {
return;
}
}
- // FIXME: Remove outdated revisions to reduce memory usage
+ // TODO: Remove outdated revisions to reduce memory usage
self.revs_map.insert(record.revision.rev_id, record.clone());
self.pending_write_revs.write().await.push(record.revision.rev_id);
self.make_checkpoint().await;
@@ -92,7 +92,7 @@ impl RevisionMemoryCache {
*self.defer_save.write().await = Some(tokio::spawn(async move {
tokio::time::sleep(Duration::from_millis(300)).await;
let mut revs_write_guard = pending_write_revs.write().await;
- // FIXME:
+ // TODO:
// It may cause performance issues because we hold the write lock of the
// rev_order and the lock will be released after the checkpoint has been written
// to the disk.
diff --git a/frontend/rust-lib/flowy-document/src/services/doc/web_socket/web_socket.rs b/frontend/rust-lib/flowy-document/src/services/doc/web_socket/web_socket.rs
index 5d5f58110e..6526f0badf 100644
--- a/frontend/rust-lib/flowy-document/src/services/doc/web_socket/web_socket.rs
+++ b/frontend/rust-lib/flowy-document/src/services/doc/web_socket/web_socket.rs
@@ -272,7 +272,7 @@ impl CombinedSink {
}
}
- // FIXME: return Option<&DocumentWSData> would be better
+ // TODO: return Option<&DocumentWSData> would be better
pub(crate) async fn front(&self) -> Option<DocumentWSData> { self.shared.read().await.front().cloned() }
pub(crate) async fn push_front(&self, data: DocumentWSData) { self.shared.write().await.push_front(data); }