mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: remove lru (#5008)
* chore: remove lru * chore: update logs * chore: clippy
This commit is contained in:
@ -9,13 +9,16 @@ pub type CollabDocStateByOid = HashMap<String, DocStateSource>;
|
||||
/// A trait for database cloud service.
|
||||
/// Each kind of server should implement this trait. Check out the [AppFlowyServerProvider] of
|
||||
/// [flowy-server] crate for more information.
|
||||
///
|
||||
/// returns the doc state of the object with the given object_id.
|
||||
/// None if the object is not found.
|
||||
pub trait DatabaseCloudService: Send + Sync {
|
||||
fn get_database_object_doc_state(
|
||||
&self,
|
||||
object_id: &str,
|
||||
collab_type: CollabType,
|
||||
workspace_id: &str,
|
||||
) -> FutureResult<Vec<u8>, Error>;
|
||||
) -> FutureResult<Option<Vec<u8>>, Error>;
|
||||
|
||||
fn batch_get_database_object_doc_state(
|
||||
&self,
|
||||
|
Reference in New Issue
Block a user