Skip to content

Commit

Permalink
example: delete duplicate and unused code in KeepAliveClient.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpe authored and ejona86 committed Aug 14, 2024
1 parent ff8e413 commit 6a9bc3b
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public static void main(String[] args) throws Exception {
// 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.
Expand Down

0 comments on commit 6a9bc3b

Please sign in to comment.