mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-19 11:15:21 +00:00
19 lines
594 B
Rust
19 lines
594 B
Rust
|
|
use flowy_database2::deps::{DatabaseCloudService, DatabaseSnapshot};
|
||
|
|
use flowy_error::FlowyError;
|
||
|
|
use lib_infra::future::FutureResult;
|
||
|
|
|
||
|
|
pub(crate) struct SelfHostedDatabaseCloudServiceImpl();
|
||
|
|
|
||
|
|
impl DatabaseCloudService for SelfHostedDatabaseCloudServiceImpl {
|
||
|
|
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) })
|
||
|
|
}
|
||
|
|
}
|