Typo in the second most recent commit

master
Peter Šurda 6 years ago
parent d9d2deee25
commit af8957ed72
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

@ -20,6 +20,6 @@ def trimKnownNodes(recAddrStream = 1):
if len(knownNodes[recAddrStream]) < knownNodesMax:
return
with knownNodesLock:
oldestList = sorted(knownNodes[recAddrStream], key=knownNodes[recAddrStream].get)[:knownNodeTrimAmount]
oldestList = sorted(knownNodes[recAddrStream], key=knownNodes[recAddrStream].get)[:knownNodesTrimAmount]
for oldest in oldestList:
del knownNodes[recAddrStream][oldest]

Loading…
Cancel
Save