example: delete duplicate and unused code in KeepAliveClient.java · grpc/grpc-java@6a9bc3b

File tree

1 file changed

lines changed

  • examples/src/main/java/io/grpc/examples/keepalive

1 file changed

lines changed

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.