Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Axel <[email protected]>
  • Loading branch information
KveinAxel committed Jan 30, 2024
1 parent 0924bb5 commit 0a8a15e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/object_store/src/object/sim/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ impl ObjectStore for SimObjectStore {
async fn delete_objects(&self, paths: &[String]) -> ObjectResult<()> {
let resp = self
.client
.send_request(service::Request::DeleteObjects { paths: paths.to_vec() })
.send_request(service::Request::DeleteObjects {
paths: paths.to_vec(),
})
.await?;
if let Response::DeleteObjects = resp {
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/object_store/src/object/sim/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl SimService {
self.storage.lock().remove(&path);
Ok(Response::Delete)
}

pub async fn delete_objects(&self, paths: Vec<String>) -> Result<Response> {
for path in paths {
self.storage.lock().remove(&path);
Expand Down

0 comments on commit 0a8a15e

Please sign in to comment.