Moved database module to separate library
Build & Publish to GHCR / build (push) Successful in 1m56s

This commit is contained in:
florian committed 2025-11-06 17:27:10 +01:00
1 parent 18042a8ff5
commit b10a2cd8e1
3 files changed
+3 -134

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
from fastapi import FastAPI, Depends, HTTPException, Response, Request
import uvicorn
from contextlib import asynccontextmanager
from db import get_db, create_connection_pool, close_connection_pool, start_healthcheck_thread
from db_module import get_db, create_connection_pool, close_connection_pool, start_healthcheck_thread
from simple_logger_handler import setup_logger, LOG_LEVEL
from feed_handler import grab_latest_chapter_information
from send_notification import send_notification
@@ -18,7 +18,7 @@ async def lifespan(app: FastAPI):
logger.info("[App] Starting application...")
logger.info("[DB] Creating MySQL connection pool...")
create_connection_pool()
create_connection_pool("royalRoadPool")
start_healthcheck_thread()
logger.info("[DB] MySQL healthcheck thread started.")