Skip to content

Commit c4ced87

Browse files
committed
drop redundant lru cache
1 parent bacd7ba commit c4ced87

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/config.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
from functools import lru_cache
32

43
from pydantic import PostgresDsn, RedisDsn
54
from pydantic_settings import BaseSettings
@@ -12,9 +11,4 @@ class Settings(BaseSettings):
1211
jwt_expire: int = os.getenv("JWT_EXPIRE")
1312

1413

15-
@lru_cache
16-
def get_settings():
17-
return Settings()
18-
19-
20-
settings = get_settings()
14+
settings = Settings()

0 commit comments

Comments
 (0)