aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-feed-client-cli
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-06-03 14:58:26 +0200
committerJon Marius Venstad <venstad@gmail.com>2021-06-03 14:59:50 +0200
commitc571345c4599e837943d42a33bbb22e9debefa14 (patch)
treeff3589ce64d206d255dae3b55f0f10b75b4ae4ab /vespa-feed-client-cli
parentf01744ce67a03860917f53d3222ff23a037fb0b1 (diff)
Support mulitple endpoints, circuit breaker, and improve concurrency
Diffstat (limited to 'vespa-feed-client-cli')
-rw-r--r--vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java b/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java
index 2f15f468588..e3f726eaf11 100644
--- a/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java
+++ b/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java
@@ -74,7 +74,7 @@ public class CliClient {
private static FeedClient createFeedClient(CliArguments cliArgs) throws CliArguments.CliArgumentsException {
FeedClientBuilder builder = FeedClientBuilder.create(cliArgs.endpoint());
- cliArgs.connections().ifPresent(builder::setMaxConnections);
+ cliArgs.connections().ifPresent(builder::setConnectionsPerEndpoint);
cliArgs.maxStreamsPerConnection().ifPresent(builder::setMaxStreamPerConnection);
if (cliArgs.sslHostnameVerificationDisabled()) {
builder.setHostnameVerifier(AcceptAllHostnameVerifier.INSTANCE);