fix: add app parameter to start_cache_sync for aiohttp on_startup hook

This commit is contained in:
yumoqing 2026-05-26 17:20:52 +08:00
parent 835a2ff3f7
commit c0bbe63845

View File

@ -65,7 +65,7 @@ def _bind_rbac_events(dbpools, dbname, up):
debug(f'RBAC event bound: {event_name}')
async def start_cache_sync():
async def start_cache_sync(app):
"""Start cache_sync and register RBAC reload callbacks."""
env = ServerEnv()
cache_sync = get_cache_sync()