review localdisk

This commit is contained in:
weisd
2024-09-26 01:52:52 +08:00
parent d759eb8b7c
commit e29ef738f2
6 changed files with 163 additions and 26 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ pub trait DiskAPI: Debug + Send + Sync + 'static {
async fn read_multiple(&self, req: ReadMultipleReq) -> Result<Vec<ReadMultipleResp>>;
// CleanAbandonedData
async fn write_all(&self, volume: &str, path: &str, data: Vec<u8>) -> Result<()>;
async fn read_all(&self, volume: &str, path: &str) -> Result<Bytes>;
async fn read_all(&self, volume: &str, path: &str) -> Result<Vec<u8>>;
}
pub struct UpdateMetadataOpts {