Skip to content
Permalink
Browse files

feat(encoder): add debug hook

  • Loading branch information...
hanxiao committed Sep 6, 2019
1 parent e285fa4 commit 105a0abf32b287e04e2809abcc840a1e169ae5b0
Showing with 2 additions and 2 deletions.
  1. +2 −2 gnes/service/base.py
@@ -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

0 comments on commit 105a0ab

Please sign in to comment.
You can’t perform that action at this time.