Skip to content

Commit c46de3b

Browse files
committed
fix: java
1 parent e8f9669 commit c46de3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/java/tests/client/benchmark.mustache

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ class {{client}}Benchmark {
4040
return ClientOptions.builder().setHosts(hosts).setCompressionType(gzipEncoding ? CompressionType.GZIP : CompressionType.NONE).build();
4141
}
4242

43-
private ClientOptions withCustomWriteTimeout(Integer writeTimeout) {
44-
return ClientOptions.builder().setWriteTimeout(Duration.ofMillis(writeTimeout)).build();
45-
}
46-
4743
{{#blocksBenchmark}}
4844
{{> tests/client/tests}}
4945
{{/blocksBenchmark}}

templates/java/tests/client/client.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ class {{client}}ClientTests {
5353
return ClientOptions.builder().setHosts(hosts).setCompressionType(gzipEncoding ? CompressionType.GZIP : CompressionType.NONE).build();
5454
}
5555

56+
private ClientOptions withCustomWriteTimeout(Integer writeTimeout) {
57+
return ClientOptions.builder().setWriteTimeout(Duration.ofMillis(writeTimeout)).build();
58+
}
59+
5660
{{#blocksClient}}
5761
{{> tests/client/tests}}
5862
{{/blocksClient}}

0 commit comments

Comments
 (0)