Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using standard executor #33

Merged
merged 1 commit into from
Jan 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading