Explorar o código

Reduce DHTHandler metadata storage time

Max Ryabinin %!s(int64=3) %!d(string=hai) anos
pai
achega
a3918cd063
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hivemind/moe/server/dht_handler.py

+ 1 - 1
hivemind/moe/server/dht_handler.py

@@ -34,7 +34,7 @@ class DHTHandlerThread(threading.Thread):
 
 
 def declare_experts(
-    dht: DHT, uids: Sequence[ExpertUID], endpoint: Endpoint, expiration: DHTExpiration = 700, wait: bool = True
+    dht: DHT, uids: Sequence[ExpertUID], endpoint: Endpoint, expiration: DHTExpiration = 300, wait: bool = True
 ) -> Dict[ExpertUID, bool]:
     """
     Make experts visible to all DHT peers; update timestamps if declared previously.