mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-02 22:08:49 +00:00
19 lines
596 B
Rust
19 lines
596 B
Rust
![]() |
use flowy_database2::deps::{DatabaseCloudService, DatabaseSnapshot};
|
||
|
use flowy_error::FlowyError;
|
||
|
use lib_infra::future::FutureResult;
|
||
|
|
||
|
pub(crate) struct LocalServerDatabaseCloudServiceImpl();
|
||
|
|
||
|
impl DatabaseCloudService for LocalServerDatabaseCloudServiceImpl {
|
||
|
fn get_database_updates(&self, _database_id: &str) -> FutureResult<Vec<Vec<u8>>, FlowyError> {
|
||
|
FutureResult::new(async move { Ok(vec![]) })
|
||
|
}
|
||
|
|
||
|
fn get_database_latest_snapshot(
|
||
|
&self,
|
||
|
_database_id: &str,
|
||
|
) -> FutureResult<Option<DatabaseSnapshot>, FlowyError> {
|
||
|
FutureResult::new(async move { Ok(None) })
|
||
|
}
|
||
|
}
|