rugmuncher-backend / app /core /db_pool.py
Crypto Rug Muncher
fix: ruff auto-fix for 50 lint errors (T01)
d1b47a8
Raw
History Blame Contribute Delete
335 Bytes
"""Database connection pooling — Redis + Postgres with auto-reconnect."""
import logging
import os
logger = logging.getLogger(__name__)
REDIS_URL = os.getenv("REDIS_URL", "redis://localhost:6379/0")
PG_URL = os.getenv("DATABASE_URL", "postgresql://postgres:postgres@localhost:5432/postgres")
_redis_pool = None
_pg_pool = None