dht_crawler: skip saving connections for now
This commit is contained in:
parent
c38573d5de
commit
d0497cf6b5
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ class Crawler:
|
|||
await self.db.save_peers(*self._memory_peers.values())
|
||||
connections_to_save = self._connections
|
||||
self._connections = {}
|
||||
await self.db.save_connections(connections_to_save)
|
||||
# await self.db.save_connections(connections_to_save) heavy call
|
||||
|
||||
def get_from_peer(self, peer):
|
||||
return self._memory_peers.get((peer.address, peer.udp_port), None)
|
||||
|
|
Loading…
Reference in a new issue