fix torrent and stream manager reference leftovers

This commit is contained in:
Victor Shyba 2020-02-07 14:42:25 -03:00
parent dd26a96828
commit b930c3fc93

View file

@ -858,7 +858,8 @@ class Daemon(metaclass=JSONRPCServerType):
'exchange_rate_manager': (bool), 'exchange_rate_manager': (bool),
'hash_announcer': (bool), 'hash_announcer': (bool),
'peer_protocol_server': (bool), 'peer_protocol_server': (bool),
'stream_manager': (bool), 'file_manager': (bool),
'libtorrent_component': (bool),
'upnp': (bool), 'upnp': (bool),
'wallet': (bool), 'wallet': (bool),
}, },
@ -885,6 +886,9 @@ class Daemon(metaclass=JSONRPCServerType):
} }
], ],
}, },
'libtorrent_component': {
'running': (bool) libtorrent was detected and started successfully,
},
'dht': { 'dht': {
'node_id': (str) lbry dht node id - hex encoded, 'node_id': (str) lbry dht node id - hex encoded,
'peers_in_routing_table': (int) the number of peers in the routing table, 'peers_in_routing_table': (int) the number of peers in the routing table,
@ -906,7 +910,7 @@ class Daemon(metaclass=JSONRPCServerType):
'hash_announcer': { 'hash_announcer': {
'announce_queue_size': (int) number of blobs currently queued to be announced 'announce_queue_size': (int) number of blobs currently queued to be announced
}, },
'stream_manager': { 'file_manager': {
'managed_files': (int) count of files in the stream manager, 'managed_files': (int) count of files in the stream manager,
}, },
'upnp': { 'upnp': {
@ -4787,8 +4791,8 @@ class Daemon(metaclass=JSONRPCServerType):
else: else:
server, port = random.choice(self.conf.reflector_servers) server, port = random.choice(self.conf.reflector_servers)
reflected = await asyncio.gather(*[ reflected = await asyncio.gather(*[
self.stream_manager.reflect_stream(stream, server, port) self.file_manager['stream'].reflect_stream(stream, server, port)
for stream in self.stream_manager.get_filtered_streams(**kwargs) for stream in self.file_manager.get_filtered_streams(**kwargs)
]) ])
total = [] total = []
for reflected_for_stream in reflected: for reflected_for_stream in reflected: