Skip to content

Commit

Permalink
feat: remove aws-smithy-types
Browse files Browse the repository at this point in the history
  • Loading branch information
oddgrd committed Nov 28, 2022
1 parent ac99caa commit 0545cd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion provisioner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ publish = false
[dependencies]
aws-config = "0.51.0"
aws-sdk-rds = "0.21.0"
aws-smithy-types = "0.51.0"
clap = { version = "3.2.17", features = ["derive", "env"] }
fqdn = "0.2.3"
mongodb = "2.3.1"
Expand Down
9 changes: 4 additions & 5 deletions provisioner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::time::Duration;
pub use args::Args;
use aws_config::timeout;
use aws_sdk_rds::{error::ModifyDBInstanceErrorKind, model::DbInstance, types::SdkError, Client};
use aws_smithy_types::tristate::TriState;
pub use error::Error;
use mongodb::{bson::doc, options::ClientOptions};
use rand::Rng;
Expand Down Expand Up @@ -51,10 +50,10 @@ impl MyProvisioner {
let mongodb_client = mongodb::Client::with_options(mongodb_options)?;

// Default timeout is too long so lowering it
let api_timeout_config = timeout::Api::new()
.with_call_timeout(TriState::Set(Duration::from_secs(120)))
.with_call_attempt_timeout(TriState::Set(Duration::from_secs(120)));
let timeout_config = timeout::Config::new().with_api_timeouts(api_timeout_config);
let timeout_config = timeout::TimeoutConfig::builder()
.operation_timeout(Duration::from_secs(120))
.operation_attempt_timeout(Duration::from_secs(120))
.build();

let aws_config = aws_config::from_env()
.timeout_config(timeout_config)
Expand Down

0 comments on commit 0545cd8

Please sign in to comment.