Skip to content

Commit

Permalink
Using standard executor for transaction operations that do not requir…
Browse files Browse the repository at this point in the history
…e the transaction ID header (#33)
  • Loading branch information
apetenchea authored Jan 4, 2025
1 parent 82d624c commit abe25bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arangoasync/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ def response_handler(resp: Response) -> str:
result: Json = self.deserializer.loads(resp.raw_body)["result"]
return cast(str, result["status"])

return await self._executor.execute(request, response_handler)
return await self._standard_executor.execute(request, response_handler)

async def commit_transaction(self) -> None:
"""Commit the transaction.
Expand All @@ -1363,7 +1363,7 @@ def response_handler(resp: Response) -> None:
if not resp.is_success:
raise TransactionCommitError(resp, request)

await self._executor.execute(request, response_handler)
await self._standard_executor.execute(request, response_handler)

async def abort_transaction(self) -> None:
"""Abort the transaction.
Expand All @@ -1383,4 +1383,4 @@ def response_handler(resp: Response) -> None:
if not resp.is_success:
raise TransactionAbortError(resp, request)

await self._executor.execute(request, response_handler)
await self._standard_executor.execute(request, response_handler)

0 comments on commit abe25bb

Please sign in to comment.