Skip to content

Commit

Permalink
Remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm committed Dec 26, 2024
1 parent e1f306d commit 4bf4425
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ public <BuilderT extends AwsClientBuilder<BuilderT, ClientT>, ClientT> BuilderT

if (skipCertificateVerification) {
client.tlsKeyManagersProvider(NoneTlsKeyManagersProvider.getInstance());
throw new RuntimeException(
"Made it this far (SdkSyncClientBuilder) - probably means the tlsKeyManagersProvider is not right");
}

// must use builder to make sure client is managed by the SDK
Expand Down Expand Up @@ -212,10 +214,14 @@ public <BuilderT extends AwsClientBuilder<BuilderT, ClientT>, ClientT> BuilderT

if (skipCertificateVerification) {
client.tlsKeyManagersProvider(NoneTlsKeyManagersProvider.getInstance());
throw new RuntimeException(
"Made it this far (SdkAsyncClientBuilder) - probably means the tlsKeyManagersProvider is not right");
}

// must use builder to make sure client is managed by the SDK
((SdkAsyncClientBuilder<?, ?>) builder).httpClientBuilder(client);
} else {
throw new RuntimeException("Surprising builder type: " + builder.toString());
}
}
return builder;
Expand Down

0 comments on commit 4bf4425

Please sign in to comment.