forked from LBRYCommunity/lbry-sdk
use refreshTimeout in getRefreshList
This commit is contained in:
parent
8efede6ad6
commit
921ee3c4c1
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ class TreeRoutingTable(object):
|
||||||
refreshIDs = []
|
refreshIDs = []
|
||||||
now = int(self._getTime())
|
now = int(self._getTime())
|
||||||
for bucket in self._buckets[startIndex:]:
|
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)
|
searchID = self._randomIDInBucketRange(bucketIndex)
|
||||||
refreshIDs.append(searchID)
|
refreshIDs.append(searchID)
|
||||||
bucketIndex += 1
|
bucketIndex += 1
|
||||||
|
|
Loading…
Reference in a new issue