]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - test.py
Refresh DHT values just before they are due to expire.
[quix0rs-apt-p2p.git] / test.py
diff --git a/test.py b/test.py
index 66f0fc6598d63657eddfadd674a1c7d92fda258d..5468a1d28e62bd65277ef5494cdc35dfb1b81ae5 100755 (executable)
--- a/test.py
+++ b/test.py
@@ -337,6 +337,10 @@ LOCAL_OK = yes
 # to reload when a new request arrives.
 UNLOAD_PACKAGES_CACHE = 5m
 
+# Refresh the DHT keys after this much time has passed.
+# This should be a time slightly less than the DHT's KEY_EXPIRE value.
+KEY_REFRESH = 57m
+
 # Which DHT implementation to use.
 # It must be possile to do "from <DHT>.DHT import DHT" to get a class that
 # implements the IDHT interface.