Skip to content

Commit 511b781

Browse files
author
acer-king
committed
increase timeout for checking alive and capacity
1 parent e019596 commit 511b781

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

validators/services/capacity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CapacityService:
1010
def __init__(self, metagraph, dendrite):
1111
self.metagraph = metagraph
1212
self.dendrite: bt.dendrite = dendrite
13-
self.timeout = 4
13+
self.timeout = 30
1414
self.uid_to_capacity = {}
1515
self.remain_uid_to_capacity = {}
1616

validators/weight_setter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ async def get_available_uids(self):
348348
async def check_uid(self, axon, uid):
349349
"""Asynchronously check if a UID is available."""
350350
try:
351-
response = await self.dendrite(axon, IsAlive(), timeout=4)
351+
response = await self.dendrite(axon, IsAlive(), timeout=30)
352352
if response.completion == 'True':
353353
bt.logging.trace(f"UID {uid} is active")
354354
return axon # Return the axon info instead of the UID

0 commit comments

Comments
 (0)