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

Commit

Permalink
feat(encoder): add debug hook
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 6, 2019
1 parent e285fa4 commit 105a0ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnes/service/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ def _run(self, ctx):

# choose output sock
if msg.request and msg.request.WhichOneof('body') and \
type(getattr(msg.request,
msg.request.WhichOneof('body'))) == gnes_pb2.Request.ControlRequest:
isinstance(getattr(msg.request, msg.request.WhichOneof('body')),
gnes_pb2.Request.ControlRequest):
o_sock = ctrl_sock
else:
o_sock = out_sock
Expand Down

0 comments on commit 105a0ab

Please sign in to comment.