Преглед на файлове

Reduce DHTHandler metadata storage time

Max Ryabinin преди 3 години
родител
ревизия
a3918cd063
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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.