Skip to content

Commit

Permalink
fix: set gRPC keep-alive to 120 seconds (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Jul 14, 2020
1 parent fb26abe commit 26be103
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -309,7 +309,7 @@ public GapicSpannerRpc(final SpannerOptions options) {

// Set a keepalive time of 120 seconds to help long running
// commit GRPC calls succeed
.setKeepAliveTime(Duration.ofSeconds(GRPC_KEEPALIVE_SECONDS * 1000))
.setKeepAliveTime(Duration.ofSeconds(GRPC_KEEPALIVE_SECONDS))

// Then check if SpannerOptions provides an InterceptorProvider. Create a default
// SpannerInterceptorProvider if none is provided
Expand Down

0 comments on commit 26be103

Please sign in to comment.