Skip to content

Commit 1570a31

Browse files
committed
Adjusting usage of builder, removing whitespace change.
1 parent 5e85430 commit 1570a31

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

http-clients/aws-crt-client/src/main/java/software/amazon/awssdk/http/crt/AwsCrtAsyncHttpClient.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ private HttpClientConnectionManager createConnectionPool(URI uri) {
145145
Validate.notNull(uri, "URI must not be null");
146146
log.debug(() -> "Creating ConnectionPool for: URI:" + uri + ", MaxConns: " + maxConnectionsPerEndpoint);
147147

148-
HttpClientConnectionManagerOptions options = new HttpClientConnectionManagerOptions();
149-
options.withClientBootstrap(bootstrap)
150-
.withSocketOptions(socketOptions)
151-
.withTlsContext(tlsContext)
152-
.withUri(uri)
153-
.withWindowSize(windowSize)
154-
.withMaxConnections(maxConnectionsPerEndpoint);
148+
HttpClientConnectionManagerOptions options = new HttpClientConnectionManagerOptions()
149+
.withClientBootstrap(bootstrap)
150+
.withSocketOptions(socketOptions)
151+
.withTlsContext(tlsContext)
152+
.withUri(uri)
153+
.withWindowSize(windowSize)
154+
.withMaxConnections(maxConnectionsPerEndpoint);
155155

156156
return HttpClientConnectionManager.create(options);
157157
}
@@ -244,7 +244,6 @@ public CompletableFuture<Void> execute(AsyncExecuteRequest asyncRequest) {
244244
// When a Connection is ready from the Connection Pool, schedule the Request on the connection
245245
crtConnPool.acquireConnection()
246246
.whenComplete((crtConn, throwable) -> {
247-
248247
// If we didn't get a connection for some reason, fail the request
249248
if (throwable != null) {
250249
requestFuture.completeExceptionally(throwable);

0 commit comments

Comments
 (0)