Fixing issue with KinesisClientUtil class (#433)

* Passing HttpClientBuilder to the client instead of HttpClient
This commit is contained in:
Sahil Palvia 2018-10-03 08:46:34 -07:00 committed by Justin Pfifer
parent e86bf3d7f3
commit 9e420d83e4

View file

@ -31,7 +31,7 @@ public class KinesisClientUtil {
* @return
*/
public static KinesisAsyncClient createKinesisAsyncClient(KinesisAsyncClientBuilder clientBuilder) {
return clientBuilder.httpClient(NettyNioAsyncHttpClient.builder().maxConcurrency(Integer.MAX_VALUE).build())
return clientBuilder.httpClientBuilder(NettyNioAsyncHttpClient.builder().maxConcurrency(Integer.MAX_VALUE))
.build();
}
}