Skip to content

Commit

Permalink
resolve some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu committed Feb 17, 2024
1 parent e530198 commit 9749716
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ dashmap = { version = "5.4", optional = true }
# for services-etcd
etcd-client = { version = "0.12", optional = true, features = ["tls"] }
# for services-foundationdb
foundationdb = { version = "0.8.0", features = ["embedded-fdb-include"], optional = true }
foundationdb = { version = "0.8.0", features = [
"embedded-fdb-include",
], optional = true }
# for services-hdfs
hdrs = { version = "0.3.0", optional = true, features = ["async_file"] }
# for services-upyun
Expand Down
5 changes: 2 additions & 3 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.to_string()).as_bytes()).collect();
byte_serialize(BASE64_STANDARD.encode(block_id).as_bytes()).collect();
let url = format!(
"{}/{}/{}?comp=block&blockid={}",
self.endpoint,
Expand Down Expand Up @@ -455,8 +455,7 @@ impl AzblobCore {
.into_iter()
.map(|block_id| {
let encoded_block_id: String =
byte_serialize(BASE64_STANDARD.encode(block_id.to_string()).as_bytes())
.collect();
byte_serialize(BASE64_STANDARD.encode(block_id).as_bytes()).collect();
encoded_block_id
})
.collect(),
Expand Down

0 comments on commit 9749716

Please sign in to comment.