summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2021-05-31 14:40:49 +0200
committerGitHub <noreply@github.com>2021-05-31 14:40:49 +0200
commitb84df569a623c88e188f169e7e7d97ba0e02d3e0 (patch)
treee3c5ae46a4a19de85ca2cf6f5d43f57a1a70c446
parent4f5f81be5369a1c452b4d6a04bc381151c3168a3 (diff)
parentfb92e89fff1b8a29fd9ee0b9155c7f7b6156a007 (diff)
Merge pull request #18039 from vespa-engine/bjorncs/fix
Use correct method on builder
-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 a4802696a6e..2f15f468588 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
@@ -75,7 +75,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.maxStreamsPerConnection().ifPresent(builder::setMaxConnections);
+ cliArgs.maxStreamsPerConnection().ifPresent(builder::setMaxStreamPerConnection);
if (cliArgs.sslHostnameVerificationDisabled()) {
builder.setHostnameVerifier(AcceptAllHostnameVerifier.INSTANCE);
}