Skip to content

Commit

Permalink
Ensure function is async
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiemh committed Feb 1, 2025
1 parent 3bc96a9 commit 01fbe11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/surrealdb/connections/async_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ async def upsert(
self.check_response_for_result(response, "upsert")
return response["result"]

def close(self):
async def close(self):
await self.socket.close()

async def __aenter__(self) -> "AsyncWsSurrealConnection":
Expand Down

0 comments on commit 01fbe11

Please sign in to comment.