From c4ced870cdf2fe6fe2a405c99fd9bd26d3595e74 Mon Sep 17 00:00:00 2001 From: Jakub Miazek Date: Sun, 17 Sep 2023 15:22:08 +0200 Subject: [PATCH] drop redundant lru cache --- app/config.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/config.py b/app/config.py index df92c86..9bb7fee 100644 --- a/app/config.py +++ b/app/config.py @@ -1,5 +1,4 @@ import os -from functools import lru_cache from pydantic import PostgresDsn, RedisDsn from pydantic_settings import BaseSettings @@ -12,9 +11,4 @@ class Settings(BaseSettings): jwt_expire: int = os.getenv("JWT_EXPIRE") -@lru_cache -def get_settings(): - return Settings() - - -settings = get_settings() +settings = Settings()