fixed bug in close method of PyMongoStorage (client close method was not awaited)

This commit is contained in:
kievzenit 2025-07-28 17:20:54 +03:00
parent 6620024a62
commit d5bc476813

View file

@ -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: