Skip to content

Commit

Permalink
fix: add keepalive changes to synth.py (#55)
Browse files Browse the repository at this point in the history
Co-authored-by: larkee <larkee@users.noreply.github.com>
  • Loading branch information
larkee and larkee committed Apr 16, 2020
1 parent c45f4fc commit 805bbb7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion synth.py
Expand Up @@ -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(
Expand Down

0 comments on commit 805bbb7

Please sign in to comment.