use refreshTimeout in getRefreshList

This commit is contained in:
Jack Robison 2018-05-29 11:02:44 -04:00
parent 8efede6ad6
commit 921ee3c4c1
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -244,7 +244,7 @@ class TreeRoutingTable(object):
refreshIDs = []
now = int(self._getTime())
for bucket in self._buckets[startIndex:]:
if force or now - bucket.lastAccessed >= constants.checkRefreshInterval:
if force or now - bucket.lastAccessed >= constants.refreshTimeout:
searchID = self._randomIDInBucketRange(bucketIndex)
refreshIDs.append(searchID)
bucketIndex += 1