Skip to content

Commit

Permalink
fix/remove-redis
Browse files Browse the repository at this point in the history
  • Loading branch information
AureliusIvan committed Jul 27, 2024
1 parent 88a00e2 commit 4eba8c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,5 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
android
android
.idea
17 changes: 1 addition & 16 deletions server/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import os

from contextlib import asynccontextmanager

from fastapi import FastAPI, Depends
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from dotenv import load_dotenv, find_dotenv
from server import models
Expand All @@ -15,19 +13,6 @@

models.Base.metadata.create_all(bind=engine)

#
# @asynccontextmanager
# async def lifespan(app: FastAPI):
# redis_connection = redis.from_url(
# "rediss://default:AVNS_FbH1Ibc7xm3hpFGXlJy@private-db-redis-sgp1-96387-remembear-do-user-11214969-0.f.db.ondigitalocean.com:25061",
# encoding="utf-8", decode_responses=True)
# await FastAPILimiter.init(redis_connection)
# try:
# yield
# finally:
# await redis_connection.disconnect() # Close the entire pool


app = FastAPI()

origins = [
Expand Down

0 comments on commit 4eba8c5

Please sign in to comment.