Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(test): fix grpc gentle shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Aug 2, 2019
1 parent c5c811d commit 823bded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnes/composer/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def build_layers(self) -> List['YamlComposer.Layer']:

# gRPCfrontend should always on the bind role
assert all_layers[0].is_single_component
assert all_layers[0].components[0].name == 'gRPCFrontend'
assert all_layers[0].components[0]['name'] == 'gRPCFrontend'

if all_layers[0].components[0]['socket_in'] == str(SocketType.SUB_CONNECT):
# change to sub bind
Expand All @@ -173,7 +173,7 @@ def build_layers(self) -> List['YamlComposer.Layer']:
all_layers[0].components[0]['socket_in'] = str(SocketType.PULL_BIND)
for c in all_layers[-1].components:
c['socket_out'] = str(SocketType.PUSH_CONNECT)

return all_layers

@staticmethod
Expand Down

0 comments on commit 823bded

Please sign in to comment.