Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2 years ago
by
Wei Shoulin
Browse files
Options
Download
Email Patches
Plain Diff
gz
parent
92631fa5
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_dfs_api_cluster/common/service.py
+1
-1
csst_dfs_api_cluster/common/service.py
with
1 addition
and
1 deletion
+1
-1
csst_dfs_api_cluster/common/service.py
+
1
-
1
View file @
edce42f0
...
@@ -8,7 +8,7 @@ class ServiceProxy:
...
@@ -8,7 +8,7 @@ class ServiceProxy:
def
channel
(
self
):
def
channel
(
self
):
options
=
((
'grpc.max_send_message_length'
,
1000
*
1024
*
1024
),
options
=
((
'grpc.max_send_message_length'
,
1000
*
1024
*
1024
),
(
'grpc.max_receive_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
:
try
:
grpc
.
channel_ready_future
(
channel
).
result
(
timeout
=
10
)
grpc
.
channel_ready_future
(
channel
).
result
(
timeout
=
10
)
except
grpc
.
FutureTimeoutError
:
except
grpc
.
FutureTimeoutError
:
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets