Skip to content

Commit

Permalink
[RSDK-8782] Add channel to generics (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
njooma committed Sep 16, 2024
1 parent 83d525f commit 4acc73b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/viam/components/generic/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class GenericClient(Generic, ReconfigurableResourceRPCClientBase):
"""

def __init__(self, name: str, channel: Channel):
self.channel = channel
self.client = GenericServiceStub(channel)
super().__init__(name)

Expand Down
1 change: 1 addition & 0 deletions src/viam/services/generic/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class GenericClient(Generic, ReconfigurableResourceRPCClientBase):
"""

def __init__(self, name: str, channel: Channel):
self.channel = channel
self.client = GenericServiceStub(channel)
super().__init__(name)

Expand Down

0 comments on commit 4acc73b

Please sign in to comment.