mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fixed bug in close method of PyMongoStorage (client close method was not awaited)
This commit is contained in:
parent
6620024a62
commit
d5bc476813
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class PyMongoStorage(BaseStorage):
|
|||
|
||||
async def close(self) -> None:
|
||||
"""Cleanup client resources and disconnect from MongoDB."""
|
||||
self._client.close()
|
||||
return await self._client.close()
|
||||
|
||||
def resolve_state(self, value: StateType) -> Optional[str]:
|
||||
if value is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue