Skip to content

Commit

Permalink
use the sdk feature
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Dec 4, 2024
1 parent c4cc2c9 commit c916e88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions aws-s3-transfer-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ aws-config = { version = "1.5.6", features = ["behavior-version-latest"] }
aws-sdk-s3 = { version = "1.51.0", features = ["behavior-version-latest"] }
aws-smithy-async = "1.2.1"
aws-smithy-experimental = { version = "0.1.3", features = ["crypto-aws-lc"] }
aws-smithy-runtime = { version = "1.7.1", features = ["client", "connector-hyper-0-14-x", "test-util", "wire-mock"] }
aws-smithy-runtime-api = "1.7.1"
aws-smithy-runtime-api = "1.7.3"
aws-runtime = "1.4.4"
aws-smithy-types = "1.2.6"
aws-types = "1.3.3"
blocking = "1.6.0"
Expand All @@ -33,7 +33,7 @@ walkdir = "2"
[dev-dependencies]
aws-sdk-s3 = { version = "1.51.0", features = ["behavior-version-latest", "test-util"] }
aws-smithy-mocks-experimental = "0.2.1"
aws-smithy-runtime = { version = "1.7.1", features = ["client", "connector-hyper-0-14-x", "test-util", "wire-mock"] }
aws-smithy-runtime = { version = "1.7.4", features = ["client", "connector-hyper-0-14-x", "test-util", "wire-mock"] }
clap = { version = "4.5.7", default-features = false, features = ["derive", "std", "help"] }
console-subscriber = "0.4.0"
http-02x = { package = "http", version = "0.2.9" }
Expand Down
7 changes: 2 additions & 5 deletions aws-s3-transfer-manager/src/config/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/

use aws_config::{AppName, BehaviorVersion};
use aws_runtime::sdk_feature::AwsSdkFeature;
use aws_sdk_s3::config::{Intercept, IntoShared};
use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;

use crate::config::Builder;
use crate::{
Expand All @@ -28,10 +28,7 @@ impl Intercept for TransferManagerFeatureInterceptor {
cfg: &mut aws_sdk_s3::config::ConfigBag,
) -> Result<(), aws_sdk_s3::error::BoxError> {
cfg.interceptor_state()
// .store_put(AppName::new("crt-dengket").unwrap())
// .store_append(AwsSdkFeature::S3Transfer)
.store_append::<SmithySdkFeature>(SmithySdkFeature::ProtocolRpcV2Cbor)
.store_append::<SmithySdkFeature>(SmithySdkFeature::Waiter);
.store_append(AwsSdkFeature::S3Transfer);
Ok(())
}
}
Expand Down

0 comments on commit c916e88

Please sign in to comment.