Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-api-cluster
Commits
edce42f0
Commit
edce42f0
authored
Nov 24, 2022
by
Wei Shoulin
Browse files
gz
parent
92631fa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api_cluster/common/service.py
View file @
edce42f0
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment