Skip to content

Commit

Permalink
Updating Organic Request Timeout (#82)
Browse files Browse the repository at this point in the history
* timeout -> 10

* slightly lowering timeout
  • Loading branch information
dylanuys authored Oct 15, 2024
1 parent 3323f1e commit 1e633a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bitmind/validator/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ async def forward(self):
responses = await self.dendrite(
axons=axons,
synapse=prepare_image_synapse(image=image),
deserialize=True
deserialize=True,
timeout=9
)

# update logging data
Expand Down
3 changes: 2 additions & 1 deletion neurons/validator_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ async def forward(self, request: Request):
predictions = await self.dendrite(
axons=[metagraph.axons[uid] for uid in miner_uids],
synapse=ImageSynapse(image=payload['image'], prediction=-1),
deserialize=True
deserialize=True,
timeout=9
)

bt.logging.info(f"[ORGANIC] {predictions}")
Expand Down

0 comments on commit 1e633a1

Please sign in to comment.