Skip to content

Commit

Permalink
ci: fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
long2ice committed Jan 5, 2024
1 parent 7851554 commit 8d179c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from contextlib import asynccontextmanager

import redis.asyncio as redis
import uvicorn
from contextlib import asynccontextmanager
from fastapi import Depends, FastAPI, HTTPException, WebSocket

from fastapi_limiter import FastAPILimiter
from fastapi_limiter.depends import RateLimiter, WebSocketRateLimiter


@asynccontextmanager
async def lifespan(_: FastAPI):
redis_connection = redis.from_url("redis://localhost:6379", encoding="utf8")
Expand Down

0 comments on commit 8d179c0

Please sign in to comment.