From 9b12c25966a1f76fdced12095bb742ce38b6c62d Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Mon, 1 May 2017 00:40:54 +0200 Subject: [PATCH] Add missing comment to PENDING_INFO_HASHES --- magneticod/magneticod/constants.py | 2 +- magneticod/magneticod/persistence.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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