Skip to content

Commit

Permalink
come bacl, to_string for block_id
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu committed Feb 17, 2024
1 parent 9749716 commit a8424bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/services/azblob/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ impl AzblobCore {
// refer to https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs=microsoft-entra-id
let p = build_abs_path(&self.root, path);
let encoded_block_id: String =
byte_serialize(BASE64_STANDARD.encode(block_id).as_bytes()).collect();
byte_serialize(BASE64_STANDARD.encode(block_id.to_string()).as_bytes()).collect();
let url = format!(
"{}/{}/{}?comp=block&blockid={}",
self.endpoint,
Expand Down Expand Up @@ -455,7 +455,7 @@ impl AzblobCore {
.into_iter()
.map(|block_id| {
let encoded_block_id: String =
byte_serialize(BASE64_STANDARD.encode(block_id).as_bytes()).collect();
byte_serialize(BASE64_STANDARD.encode(block_id.to_string()).as_bytes()).collect();
encoded_block_id
})
.collect(),
Expand Down

0 comments on commit a8424bf

Please sign in to comment.