Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Jan 10, 2024
1 parent fee030f commit 190649d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/src/services/cos/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl oio::MultipartWrite for CosWriter {
StatusCode::OK => {
let bs = resp.into_body().bytes().await?;

let result: InitiateMultipartResult =
let result: InitiateMultipartUploadResult =
quick_xml::de::from_reader(bytes::Buf::reader(bs))
.map_err(new_xml_deserialize_error)?;

Expand Down Expand Up @@ -127,7 +127,7 @@ impl oio::MultipartWrite for CosWriter {
async fn complete_part(&self, upload_id: &str, parts: &[oio::MultipartPart]) -> Result<()> {
let parts = parts
.iter()
.map(|p| CompleteMultipartRequestPart {
.map(|p| CompleteMultipartUploadRequestPart {
part_number: p.part_number,
etag: p.etag.clone(),
})
Expand Down
4 changes: 2 additions & 2 deletions core/src/services/obs/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl oio::MultipartWrite for ObsWriter {
StatusCode::OK => {
let bs = resp.into_body().bytes().await?;

let result: InitiateMultipartResult =
let result: InitiateMultipartUploadResult =
quick_xml::de::from_reader(bytes::Buf::reader(bs))
.map_err(new_xml_deserialize_error)?;

Expand Down Expand Up @@ -128,7 +128,7 @@ impl oio::MultipartWrite for ObsWriter {
async fn complete_part(&self, upload_id: &str, parts: &[MultipartPart]) -> Result<()> {
let parts = parts
.iter()
.map(|p| CompleteMultipartRequestPart {
.map(|p| CompleteMultipartUploadRequestPart {
part_number: p.part_number,
etag: p.etag.clone(),
})
Expand Down
4 changes: 2 additions & 2 deletions core/src/services/oss/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl oio::MultipartWrite for OssWriter {
StatusCode::OK => {
let bs = resp.into_body().bytes().await?;

let result: InitiateMultipartResult =
let result: InitiateMultipartUploadResult =
quick_xml::de::from_reader(bytes::Buf::reader(bs))
.map_err(new_xml_deserialize_error)?;

Expand Down Expand Up @@ -133,7 +133,7 @@ impl oio::MultipartWrite for OssWriter {
async fn complete_part(&self, upload_id: &str, parts: &[oio::MultipartPart]) -> Result<()> {
let parts = parts
.iter()
.map(|p| MultipartPart {
.map(|p| MultipartUploadPart {
part_number: p.part_number,
etag: p.etag.clone(),
})
Expand Down
4 changes: 2 additions & 2 deletions core/src/services/s3/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl oio::MultipartWrite for S3Writer {
StatusCode::OK => {
let bs = resp.into_body().bytes().await?;

let result: InitiateMultipartResult =
let result: InitiateMultipartUploadResult =
quick_xml::de::from_reader(bytes::Buf::reader(bs))
.map_err(new_xml_deserialize_error)?;

Expand Down Expand Up @@ -131,7 +131,7 @@ impl oio::MultipartWrite for S3Writer {
async fn complete_part(&self, upload_id: &str, parts: &[oio::MultipartPart]) -> Result<()> {
let parts = parts
.iter()
.map(|p| CompleteMultipartRequestPart {
.map(|p| CompleteMultipartUploadRequestPart {
part_number: p.part_number,
etag: p.etag.clone(),
})
Expand Down

0 comments on commit 190649d

Please sign in to comment.