Refresh DHT values just before they are due to expire.
[quix0rs-apt-p2p.git] / apt_dht / apt_dht_conf.py
index 931d46cdd5a1a7fb48308c2dbac0ea22dc00e9c0..3fad6259f43cb55fc5367d68d31b7936ea017a6a 100644 (file)
@@ -43,6 +43,10 @@ DEFAULTS = {
     # 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.