From 8d73acef4a3ed0390a7d1004927610259949f007 Mon Sep 17 00:00:00 2001 From: rishtigupta Date: Tue, 4 Mar 2025 16:29:05 -0800 Subject: [PATCH 1/2] fix: disable dynamic DNS service config --- src/momento/internal/_utilities/_grpc_channel_options.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/momento/internal/_utilities/_grpc_channel_options.py b/src/momento/internal/_utilities/_grpc_channel_options.py index 7ebc8054..841775d4 100644 --- a/src/momento/internal/_utilities/_grpc_channel_options.py +++ b/src/momento/internal/_utilities/_grpc_channel_options.py @@ -35,6 +35,10 @@ def grpc_data_channel_options_from_grpc_config(grpc_config: GrpcConfiguration) - ) ) + channel_options.append( + ("grpc.service_config_disable_resolution", 1) + ) + keepalive_permit = grpc_config.get_keepalive_permit_without_calls() if keepalive_permit is not None: channel_options.append(("grpc.keepalive_permit_without_calls", keepalive_permit)) From bd03ec00579002d47e2fd63f4a364e1e8855a850 Mon Sep 17 00:00:00 2001 From: rishtigupta Date: Tue, 4 Mar 2025 16:34:16 -0800 Subject: [PATCH 2/2] fix: linting --- src/momento/internal/_utilities/_grpc_channel_options.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/momento/internal/_utilities/_grpc_channel_options.py b/src/momento/internal/_utilities/_grpc_channel_options.py index 841775d4..ca5ad583 100644 --- a/src/momento/internal/_utilities/_grpc_channel_options.py +++ b/src/momento/internal/_utilities/_grpc_channel_options.py @@ -35,9 +35,7 @@ def grpc_data_channel_options_from_grpc_config(grpc_config: GrpcConfiguration) - ) ) - channel_options.append( - ("grpc.service_config_disable_resolution", 1) - ) + channel_options.append(("grpc.service_config_disable_resolution", 1)) keepalive_permit = grpc_config.get_keepalive_permit_without_calls() if keepalive_permit is not None: