circular-fix

This commit is contained in:
Untone 2024-03-12 15:01:45 +03:00
parent 37319c2091
commit 480485c20a
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,6 @@ from ariadne.asgi import GraphQL
from starlette.applications import Starlette
from starlette.routing import Route
from services.cache import events_register
from services.rediscache import redis
from services.schema import resolvers
from services.viewed import ViewedStorage
@ -38,7 +37,6 @@ app = Starlette(
ViewedStorage.init,
# search_service.info,
# start_sentry,
events_register,
start,
],
on_shutdown=[redis.disconnect],

View File

@ -49,6 +49,10 @@ from resolvers.notifier import (
notifications_seen_thread,
)
from services.cache import events_register
events_register()
__all__ = [
# author
'get_author',