Skip to content

Commit

Permalink
fix: set a default behavior version
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Jan 31, 2024
1 parent 332b706 commit 6698756
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion event-bus/src/sqs.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::Event;
use aws_config::SdkConfig;
use aws_config::{BehaviorVersion, SdkConfig};
use aws_credential_types::credential_fn::provide_credentials_fn;
use aws_credential_types::provider::SharedCredentialsProvider;
use aws_sdk_sqs::config::Region;
Expand Down Expand Up @@ -32,6 +32,7 @@ impl SqsEventBus {
let region = Region::new(region.into());
let config = SdkConfig::builder()
.region(region)
.behavior_version(BehaviorVersion::latest())
.credentials_provider(SharedCredentialsProvider::new(provide_credentials_fn(move || {
let creds = creds.clone();
async { Ok(creds) }
Expand Down

0 comments on commit 6698756

Please sign in to comment.