diff --git a/magneticod/magneticod/constants.py b/magneticod/magneticod/constants.py index 3b76e4c..bc2c954 100644 --- a/magneticod/magneticod/constants.py +++ b/magneticod/magneticod/constants.py @@ -4,7 +4,7 @@ BOOTSTRAPPING_NODES = [ ("router.bittorrent.com", 6881), ("dht.transmissionbt.com", 6881) ] -PENDING_INFO_HASHES = 10 +PENDING_INFO_HASHES = 10 # threshold for pending info hashes before being committed to database: TICK_INTERVAL = 1 # in seconds (soft constraint) # maximum (inclusive) number of active (disposable) peers to fetch the metadata per info hash at the same time: diff --git a/magneticod/magneticod/persistence.py b/magneticod/magneticod/persistence.py index 231dd47..f9d02c1 100644 --- a/magneticod/magneticod/persistence.py +++ b/magneticod/magneticod/persistence.py @@ -18,8 +18,6 @@ import time import typing import os -# threshold for pending info hashes before being committed to database: - from .constants import PENDING_INFO_HASHES