example: delete duplicate and unused code in KeepAliveClient.java

This commit is contained in:
sunpe 2024-08-13 22:31:32 +08:00 committed by Eric Anderson
parent ff8e413760
commit 6a9bc3ba17
1 changed files with 0 additions and 1 deletions

View File

@ -78,7 +78,6 @@ public class KeepAliveClient {
// frames.
// More details see: https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md
ManagedChannel channel = Grpc.newChannelBuilder(target, InsecureChannelCredentials.create())
.keepAliveTime(5, TimeUnit.MINUTES)
.keepAliveTime(10, TimeUnit.SECONDS) // Change to a larger value, e.g. 5min.
.keepAliveTimeout(1, TimeUnit.SECONDS) // Change to a larger value, e.g. 10s.
.keepAliveWithoutCalls(true)// You should normally avoid enabling this.