mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 18:25:21 +00:00
ChannelDB: trivial bugfix for get_channels_for_node
This commit is contained in:
parent
c38afe8b07
commit
9a0ba7fa79
1 changed files with 2 additions and 2 deletions
|
@ -593,9 +593,9 @@ class ChannelDB(SqlDB):
|
|||
def get_channel_info(self, channel_id: bytes):
|
||||
return self._channels.get(channel_id)
|
||||
|
||||
def get_channels_for_node(self, node_id):
|
||||
def get_channels_for_node(self, node_id) -> Set[bytes]:
|
||||
"""Returns the set of channels that have node_id as one of the endpoints."""
|
||||
return self._channels_for_node.get(node_id)
|
||||
return self._channels_for_node.get(node_id) or set()
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue