drop redundant lru cache

This commit is contained in:
Jakub Miazek 2023-09-17 15:22:08 +02:00
parent bacd7ba6de
commit c4ced870cd

View File

@ -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()