run.py: fix other peace of mind things

This commit is contained in:
Luna 2019-02-03 22:50:45 -03:00
parent d95b6adb16
commit a69a2423de
1 changed files with 6 additions and 6 deletions

12
run.py
View File

@ -218,18 +218,18 @@ async def init_app_db(app_):
def init_app_managers(app_):
"""Initialize singleton classes."""
app_.loop = asyncio.get_event_loop()
app_.ratelimiter = RatelimitManager(app.config.get('_testing'))
app_.ratelimiter = RatelimitManager(app_.config.get('_testing'))
app_.state_manager = StateManager()
app_.storage = Storage(app)
app_.user_storage = UserStorage(app.storage)
app_.storage = Storage(app_)
app_.user_storage = UserStorage(app_.storage)
app_.icons = IconManager(app)
app_.icons = IconManager(app_)
app_.dispatcher = EventDispatcher(app)
app_.dispatcher = EventDispatcher(app_)
app_.presence = PresenceManager(app_)
app_.storage.presence = app.presence
app_.storage.presence = app_.presence
async def api_index(app_):