Skip to content

Commit

Permalink
Make the step of picking TAP mode clearer
Browse files Browse the repository at this point in the history
Co-authored-by: Russ Allbery <[email protected]>
  • Loading branch information
stvoutsin and rra authored Feb 3, 2025
1 parent 02bd136 commit 761a9e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mobu/services/business/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ async def run_query(self, query: str) -> None:
if not self._client:
raise RuntimeError("TAPBusiness startup never ran")

mode = "(sync)" if self.options.sync else "(async)"
method = (
self._client.search
if self.options.sync
else self._client.run_async
)
if self.options.sync:
mode = "(sync)"
method = self._client.search
else:
mode = "(async)"
method = self._client.run_async

self.logger.info(f"Running {mode}: {query}")
loop = asyncio.get_event_loop()
Expand Down

0 comments on commit 761a9e1

Please sign in to comment.