Skip to content

Commit

Permalink
[rqd] Add usage of gRPC intercept_channel. (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
splhack authored Oct 19, 2021
1 parent f5933e6 commit ba90de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rqd/rqd/rqnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ def __getChannel(self):
shuffle(cuebots)
if len(cuebots) > 0:
self.channel = grpc.insecure_channel('%s:%s' % (cuebots[0],
rqd.rqconstants.CUEBOT_GRPC_PORT),
*interceptors)
rqd.rqconstants.CUEBOT_GRPC_PORT))
self.channel = grpc.intercept_channel(self.channel, *interceptors)
atexit.register(self.closeChannel)

def __getReportStub(self):
Expand Down

0 comments on commit ba90de8

Please sign in to comment.
  翻译: