Skip to content

Commit

Permalink
asyncio.wait to asyncio.gather for coroutines in opa client engine
Browse files Browse the repository at this point in the history
  • Loading branch information
devine12 committed Jan 9, 2024
1 parent f1cbc2b commit 68f1e6a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/opal-client/opal_client/engine/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,9 @@ async def _run_process_until_terminated(self) -> int:
)

if self._piped_logs_format != EngineLogFormat.NONE:
await asyncio.wait(
[
self.pipe_logs(self._process.stdout, self._piped_logs_format),
self.pipe_logs(self._process.stderr, self._piped_logs_format),
]
await asyncio.gather(
self.pipe_logs(self._process.stdout, self._piped_logs_format),
self.pipe_logs(self._process.stderr, self._piped_logs_format)
)

return_code = await self._process.wait()
Expand Down

0 comments on commit 68f1e6a

Please sign in to comment.