mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
drop redundant lru cache
This commit is contained in:
parent
bacd7ba6de
commit
c4ced870cd
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user