Skip to content

Commit

Permalink
implement PutPart methods for Box<dyn ObjectStore>
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonrnewhouse committed Oct 21, 2023
1 parent 6062e6b commit 2769380
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions object_store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,24 @@ macro_rules! as_ref_impl {
self.as_ref().put_multipart(location).await
}

#[cfg(feature = "cloud")]
async fn initiate_multipart_upload(
&self,
location: &Path,
) -> Result<(MultipartId, Box<dyn PutPart>)> {
self.as_ref().initiate_multipart_upload(location).await
}

/// Get a multi-part upload that allows writing data in chunks
#[cfg(feature = "cloud")]
async fn get_put_part(
&self,
location: &Path,
multipart_id: &MultipartId,
) -> Result<Box<dyn PutPart>> {
self.as_ref().get_put_part(location, multipart_id).await
}

async fn abort_multipart(
&self,
location: &Path,
Expand Down

0 comments on commit 2769380

Please sign in to comment.