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

Commit

Permalink
fix(router): respect num_part when set
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Aug 27, 2019
1 parent 87e4bcf commit d02cd75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/service/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def post_init(self):
self._pending = defaultdict(list) # type: Dict[str, List]

def _is_msg_complete(self, msg: 'gnes_pb2.Message', num_req: int) -> bool:
return (num_req == msg.envelope.num_part[-1]) or \
return (self.args.num_part is None and num_req == msg.envelope.num_part[-1]) or \
(num_req == self.args.num_part)

@handler.register(NotImplementedError)
Expand Down

0 comments on commit d02cd75

Please sign in to comment.