forked from mtusi2026/mtusi2026lab5
formatted project by python-black
This commit is contained in:
+1
-2
@@ -4,6 +4,7 @@ from redis.backoff import NoBackoff
|
||||
|
||||
from app.core.config import Settings
|
||||
|
||||
|
||||
def create_redis_client(settings: Settings) -> Redis:
|
||||
password = (
|
||||
settings.redis_password.get_secret_value() if settings.redis_password else None
|
||||
@@ -21,5 +22,3 @@ def create_redis_client(settings: Settings) -> Redis:
|
||||
decode_responses=True,
|
||||
)
|
||||
return Redis.from_pool(pool)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user