Skip to content

Commit dc53e34

Browse files
authored
Merge pull request #102 from Datura-ai/hotfix-main-bittensor
Hotfix main bittensor
2 parents df6f2a7 + 0d3ead0 commit dc53e34

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

cortext/dendrite.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ async def call_stream(
4747
# Preprocess synapse for making a request
4848
synapse: StreamPrompting = self.preprocess_synapse_for_request(target_axon, synapse, timeout) # type: ignore
4949
max_try = 0
50-
timeout = aiohttp.ClientTimeout(total=100, connect=timeout, sock_connect=timeout, sock_read=timeout)
50+
timeout = aiohttp.ClientTimeout(total=timeout, connect=10, sock_connect=10, sock_read=10)
5151
connector = aiohttp.TCPConnector(limit=200)
5252
session = aiohttp.ClientSession(timeout=timeout, connector=connector)
5353
try:
54-
while max_try < 3:
54+
while max_try < 2:
5555
async with session.post(
5656
url,
5757
headers=synapse.to_headers(),

validators/weight_setter.py

-3
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,6 @@ async def process_queries_from_database(self):
599599
if not self.is_epoch_end():
600600
bt.logging.debug("no end of epoch. so continue...")
601601
continue
602-
if not self.synthetic_task_done:
603-
bt.logging.debug("wait for synthetic tasks to complete.")
604-
continue
605602

606603
bt.logging.info(f"start scoring process...")
607604

0 commit comments

Comments
 (0)