mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-17 13:07:32 +02:00
Remove old comments from network manager (#1061)
This commit is contained in:
parent
1101dd7480
commit
a59647c77f
1 changed files with 0 additions and 15 deletions
|
|
@ -115,21 +115,6 @@ class NetworkManager(object):
|
|||
self.local_port,
|
||||
)
|
||||
|
||||
# def register_peers_changed_callback(self, callback, stopped: threading.Event):
|
||||
# """Registers a callback that gets called when connected peers changes.
|
||||
# """
|
||||
# name = "peers_changed_callback_{}".format(uuid.uuid1()),
|
||||
# self.connection_manager.add_peers_changed_callback(
|
||||
# name=name,
|
||||
# callback=callback,
|
||||
# )
|
||||
# try:
|
||||
# stopped.wait()
|
||||
# finally:
|
||||
# self.connection_manager.remove_peers_changed_callback(
|
||||
# name=name,
|
||||
# )
|
||||
|
||||
def subscribe_connected_peers(self, stopped):
|
||||
subscription_client = ConnectedPeersSubscriptionClient(
|
||||
self.connection_manager,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue