From 0f49f7ec4cd7de919e18f60071d9ed65c39ff95b Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Fri, 24 Nov 2023 00:20:32 +0100 Subject: [PATCH] disable kafka highscores --- src/core/server.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/server.py b/src/core/server.py index 8f01362..16236f5 100644 --- a/src/core/server.py +++ b/src/core/server.py @@ -98,9 +98,9 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE return JSONResponse(content={"detail": error}, status_code=422) -@app.on_event("startup") -async def startup_event(): - if config.env != "DEV": - logger.info("startup initiated") - highscore_processor = HighscoreProcessor(batch_size=100) - asyncio.ensure_future(highscore_processor.start()) +# @app.on_event("startup") +# async def startup_event(): +# if config.env != "DEV": +# logger.info("startup initiated") +# highscore_processor = HighscoreProcessor(batch_size=100) +# asyncio.ensure_future(highscore_processor.start())