Skip to content

Commit

Permalink
fix: s3 client re-validate on change
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDombo committed Jun 2, 2023
1 parent ef8d01c commit 0f611e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class S3SdkClientFactory {
public S3SdkClientFactory(DeviceConfiguration deviceConfiguration, LazyCredentialProvider credentialsProvider) {
this.credentialsProvider = credentialsProvider;
this.deviceConfiguration = deviceConfiguration;
this.deviceConfiguration.getAWSRegion().subscribe((what, node) -> handleRegionUpdate());
this.deviceConfiguration.onAnyChange((what, node) -> handleRegionUpdate());
}

protected void handleRegionUpdate() {
Expand Down

0 comments on commit 0f611e5

Please sign in to comment.