Fix typo [ci skip]
This commit is contained in:
parent
8ed276c1b8
commit
ae5309a476
@ -43,7 +43,7 @@ async def http_exception_handler(request, exc):
|
|||||||
|
|
||||||
|
|
||||||
@app.on_event("startup")
|
@app.on_event("startup")
|
||||||
async def starup_event():
|
async def startup_event():
|
||||||
redis = Redis()
|
redis = Redis()
|
||||||
app.state.redis = await redis.create_pool(
|
app.state.redis = await redis.create_pool(
|
||||||
f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_DB}?encoding=utf-8"
|
f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_DB}?encoding=utf-8"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user