소스 검색

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.