Skip to content

Commit

Permalink
Merge pull request #158 from basondole/patch-1
Browse files Browse the repository at this point in the history
Passing the timeout to the subscribe Stub
  • Loading branch information
akarneliuk authored Aug 10, 2024
2 parents 73a6425 + 553043c commit 18550b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygnmi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ def subscribe(
gnmi_message_request = self._build_subscriptionrequest(subscribe)
debug_gnmi_msg(self.__debug, gnmi_message_request, "gNMI request")

return self.__stub.Subscribe(self.__generator(gnmi_message_request), metadata=self.__metadata)
return self.__stub.Subscribe(self.__generator(gnmi_message_request), metadata=self.__metadata, timeout=timeout)

def subscribe2(self, subscribe: dict, target: str = None, extension: list = None):
"""
Expand Down

0 comments on commit 18550b1

Please sign in to comment.