Skip to content
Permalink
Browse files
fix: add keepalive changes to synth.py (#55)
Co-authored-by: larkee <larkee@users.noreply.github.com>
  • Loading branch information
larkee and larkee committed Apr 16, 2020
1 parent c45f4fc commit 805bbb766fd9c019f528e2f8ed1379d997622d03
Showing with 8 additions and 1 deletion.
  1. +8 −1 synth.py
@@ -46,7 +46,14 @@
s.replace(
"google/cloud/spanner_v1/gapic/transports/spanner_grpc_transport.py",
"from google.cloud.spanner_v1.proto import spanner_pb2_grpc\n",
"\g<0>\n\n_SPANNER_GRPC_CONFIG = 'spanner.grpc.config'\n",
"\g<0>\n\n_GRPC_KEEPALIVE_MS = 2 * 60 * 1000\n"
"_SPANNER_GRPC_CONFIG = 'spanner.grpc.config'\n",
)

s.replace(
"google/cloud/spanner_v1/gapic/transports/spanner_grpc_transport.py",
"(\s+)'grpc.max_receive_message_length': -1,",
"\g<0>\g<1>\"grpc.keepalive_time_ms\": _GRPC_KEEPALIVE_MS,",
)

s.replace(

0 comments on commit 805bbb7

Please sign in to comment.