瀏覽代碼

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.