Fix circular import
- previous commit broke
This commit is contained in:
parent
af2bb95601
commit
4b995e7996
|
@ -4,7 +4,6 @@ from threading import RLock
|
||||||
from inventory import Inventory
|
from inventory import Inventory
|
||||||
import network.connectionpool
|
import network.connectionpool
|
||||||
from network.dandelion import Dandelion
|
from network.dandelion import Dandelion
|
||||||
from network.stats import pendingDownload
|
|
||||||
from randomtrackingdict import RandomTrackingDict
|
from randomtrackingdict import RandomTrackingDict
|
||||||
from state import missingObjects
|
from state import missingObjects
|
||||||
|
|
||||||
|
@ -55,7 +54,7 @@ class ObjectTracker(object):
|
||||||
def clean(self):
|
def clean(self):
|
||||||
if self.lastCleaned < time.time() - ObjectTracker.invCleanPeriod:
|
if self.lastCleaned < time.time() - ObjectTracker.invCleanPeriod:
|
||||||
if haveBloom:
|
if haveBloom:
|
||||||
if pendingDownload() == 0:
|
if len(missingObjects) == 0:
|
||||||
self.initInvBloom()
|
self.initInvBloom()
|
||||||
self.initAddrBloom()
|
self.initAddrBloom()
|
||||||
else:
|
else:
|
||||||
|
|
Reference in New Issue
Block a user