Skip to content

Commit

Permalink
Refactor main.py to remove unused imports and redis connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeisraeljohn committed Sep 19, 2024
1 parent 6c2bb66 commit 4226e08
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@
from fastapi.responses import JSONResponse
from db.session import create_all_tables_and_initialize_redis_instance
from pydantic import ValidationError
from starlette.middleware.base import BaseHTTPMiddleware
from api.v1 import (
account_router,
refunds_router,
payment_method_router,
transaction_router,
)
import os
import redis

REDIS_URL = os.getenv("REDIS_URL")
client = redis.Redis.from_url(REDIS_URL)

app = FastAPI(
lifespan=create_all_tables_and_initialize_redis_instance,
Expand Down

0 comments on commit 4226e08

Please sign in to comment.