revisionstore: remove the default flush from MutableDeltaStore

Summary: The method is now implemented in all stores, we can get rid of it.

Reviewed By: kulshrax

Differential Revision: D15416715

fbshipit-source-id: 6d6e6f5bfaf66796f66efbdc943e125b56808e39
This commit is contained in:
Xavier Deguillard 2019-05-21 14:14:06 -07:00 committed by Facebook Github Bot
parent 6f7856c02b
commit 2b0ffccb2d

View File

@ -41,9 +41,7 @@ pub trait DataStore: LocalStore {
pub trait MutableDeltaStore {
fn add(&mut self, delta: &Delta, metadata: &Metadata) -> Fallible<()>;
fn close(self) -> Fallible<Option<PathBuf>>;
fn flush(&mut self) -> Fallible<Option<PathBuf>> {
unimplemented!()
}
fn flush(&mut self) -> Fallible<Option<PathBuf>>;
}
/// Implement `DataStore` for all types that can be `Deref` into a `DataStore`. This includes all