Skip to content

Commit 26be103

Browse files
authored
fix: set gRPC keep-alive to 120 seconds (#339)
1 parent fb26abe commit 26be103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public GapicSpannerRpc(final SpannerOptions options) {
309309

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

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

0 commit comments

Comments
 (0)