Skip to content

Commit

Permalink
z
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Feb 10, 2025
1 parent e887c6e commit bcca6f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/storage/src/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ impl HttpFetch for StorageHttpClient {
};
// get first component in path as bucket name
let bucket = match url.path_segments() {
Some(mut segments) => match segments.next() {
Some(bucket) => bucket,
None => "-",
},
Some(mut segments) => segments.next().unwrap_or("-"),
None => "-",
};
metrics_inc_storage_http_requests_count(
Expand Down

0 comments on commit bcca6f4

Please sign in to comment.