Skip to content

Commit

Permalink
refactor: Bump OpenDAL to 0.50 (#2283)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Nov 8, 2024
1 parent 9ddf659 commit 990854f
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 76 deletions.
131 changes: 58 additions & 73 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ mime = "0.3"
num_cpus = "1.16"
number_prefix = "0.4"
once_cell = "1.19"
opendal = { version = "0.48.0", optional = true, default-features = false }
opendal = { version = "0.50.1", optional = true, default-features = false }
openssl = { version = "0.10.64", optional = true }
rand = "0.8.4"
regex = "1.10.3"
Expand Down
4 changes: 2 additions & 2 deletions src/cache/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ impl S3Cache {
/// Set the user agent (helps with monitoring on the server side)
fn set_user_agent() -> HttpClient {
let user_agent = format!("{}/{}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"));
let client_builder = ClientBuilder::new().user_agent(user_agent);
HttpClient::build(client_builder).unwrap()
let client = ClientBuilder::new().user_agent(user_agent).build().unwrap();
HttpClient::with(client)
}

/// Resolve given endpoint along with use_ssl settings.
Expand Down

0 comments on commit 990854f

Please sign in to comment.