Typo in the second most recent commit

This commit is contained in:
Peter Šurda 2017-02-27 23:37:15 +01:00
parent d9d2deee25
commit af8957ed72
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

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