forked from LBRYCommunity/lbry-sdk
dht_crawler: fix last_seen update
This commit is contained in:
parent
965389b759
commit
29c2d5715d
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ class Crawler:
|
|||
to_peer_id=peer_id)
|
||||
for peer_id in db_peer_ids
|
||||
}
|
||||
self.db.query(DHTPeer).filter(DHTPeer.node_id.in_(set(db_peer_ids))).update(
|
||||
self.db.query(DHTPeer).filter(DHTPeer.peer_id.in_(set(db_peer_ids))).update(
|
||||
{DHTPeer.last_seen: datetime.datetime.utcnow()})
|
||||
self.db.query(DHTConnection).filter(DHTConnection.from_peer_id == target_peer_id).delete()
|
||||
self.db.add_all(connections)
|
||||
|
|
Loading…
Reference in a new issue