Skip to content

Commit 6a9bc3b

Browse files
sunpeejona86
authored andcommitted
example: delete duplicate and unused code in KeepAliveClient.java
1 parent ff8e413 commit 6a9bc3b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/src/main/java/io/grpc/examples/keepalive/KeepAliveClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public static void main(String[] args) throws Exception {
7878
// frames.
7979
// More details see: https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md
8080
ManagedChannel channel = Grpc.newChannelBuilder(target, InsecureChannelCredentials.create())
81-
.keepAliveTime(5, TimeUnit.MINUTES)
8281
.keepAliveTime(10, TimeUnit.SECONDS) // Change to a larger value, e.g. 5min.
8382
.keepAliveTimeout(1, TimeUnit.SECONDS) // Change to a larger value, e.g. 10s.
8483
.keepAliveWithoutCalls(true)// You should normally avoid enabling this.

0 commit comments

Comments
 (0)