Skip to content

Commit

Permalink
Yield with sleep(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Dec 20, 2024
1 parent 67889ce commit 128ebdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_ert/forward_model_runner/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def _receiver(self) -> None:
logger.debug(
f"{self.dealer_id} connection to evaluator went down, reconnecting: {exc}"
)
await asyncio.sleep(1)
await asyncio.sleep(0)
self.socket.connect(self.url)

async def send(self, message: str | bytes, retries: int | None = None) -> None:
Expand Down

0 comments on commit 128ebdf

Please sign in to comment.