mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 01:15:31 +00:00
FSM storage closing now is async
This commit is contained in:
parent
84c8548ceb
commit
17871155ee
4 changed files with 4 additions and 4 deletions
|
|
@ -143,7 +143,7 @@ async def on_shutdown(app):
|
|||
await bot.delete_webhook()
|
||||
|
||||
# Close Redis connection.
|
||||
dp.storage.close()
|
||||
await dp.storage.close()
|
||||
await dp.storage.wait_closed()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue