diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2021-05-28 08:37:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 08:37:33 +0200 |
commit | a8f7e71015429037b0d3357f5e31064fe3488151 (patch) | |
tree | 314034c8dd0bbed60cbbb4bcfc0e3b91c24b88d2 /vespa-feed-client-cli | |
parent | cf82ff60e85efb24517551d0450d6647bb0aa651 (diff) |
Remove redundant buffering
Diffstat (limited to 'vespa-feed-client-cli')
-rw-r--r-- | vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java | 3 |
1 files changed, 1 insertions, 2 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 4e0640bc891..f30d44ba4f3 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 @@ -91,8 +91,7 @@ public class CliClient { } private InputStream createFeedInputStream(CliArguments cliArgs) throws CliArguments.CliArgumentsException, IOException { - return new BufferedInputStream( - cliArgs.readFeedFromStandardInput() ? systemIn : Files.newInputStream(cliArgs.inputFile().get())); + return cliArgs.readFeedFromStandardInput() ? systemIn : Files.newInputStream(cliArgs.inputFile().get()); } private void printBenchmarkResult(JsonStreamFeeder.BenchmarkResult result) throws IOException { |