From edce42f0ff23ef4655a81d440af8aa4615a6ff41 Mon Sep 17 00:00:00 2001 From: shoulinwei Date: Thu, 24 Nov 2022 22:20:20 +0800 Subject: [PATCH] gz --- csst_dfs_api_cluster/common/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csst_dfs_api_cluster/common/service.py b/csst_dfs_api_cluster/common/service.py index 2202e0f..2b05da3 100644 --- a/csst_dfs_api_cluster/common/service.py +++ b/csst_dfs_api_cluster/common/service.py @@ -8,7 +8,7 @@ class ServiceProxy: def channel(self): options = (('grpc.max_send_message_length', 1000 * 1024 * 1024), ('grpc.max_receive_message_length', 1000 * 1024 * 1024)) - channel = grpc.insecure_channel(self.gateway, options = options) + channel = grpc.insecure_channel(self.gateway, options = options, compression = grpc.Compression.Gzip) try: grpc.channel_ready_future(channel).result(timeout=10) except grpc.FutureTimeoutError: -- GitLab