Skip to content

Commit

Permalink
Corrected the formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Ankit Saurabh <[email protected]>
  • Loading branch information
Ankit Saurabh committed Jun 28, 2023
1 parent 3bc0fce commit 5267aa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mountpoint-s3-client/tests/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use aws_sdk_s3::types::ByteStream;
use bytes::Bytes;
use common::*;
use mountpoint_s3_client::{AddressingStyle, Endpoint, ObjectClient, S3ClientConfig, S3CrtClient};
use mountpoint_s3_crt::{s3::endpoint_resolver::RuleEngine, common::allocator::Allocator};
use mountpoint_s3_crt::{common::allocator::Allocator, s3::endpoint_resolver::RuleEngine};
use test_case::test_case;

async fn run_test<F: FnOnce(&str) -> Endpoint>(f: F) {
Expand Down
2 changes: 1 addition & 1 deletion mountpoint-s3/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ fn create_client_for_bucket(
// Don't try to automatically correct the region if it was manually specified incorrectly
Err(ObjectClientError::ServiceError(HeadBucketError::IncorrectRegion(region))) if supposed_region.is_none() => {
tracing::warn!("bucket {bucket} is in region {region}, not {region_to_try}. redirecting...");

let endpoint = Endpoint::from_region(&region, addressing_style, &rule_engine, &mut allocator)?;
let new_client = S3CrtClient::new(
&region,
Expand Down

0 comments on commit 5267aa4

Please sign in to comment.