We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10729c3 commit afaa3aaCopy full SHA for afaa3aa
1 file changed
telemetry_api/config.py
@@ -1,5 +1,6 @@
1
from pydantic_settings import BaseSettings, SettingsConfigDict
2
from pydantic import SecretStr
3
+from functools import lru_cache
4
5
6
class Settings(BaseSettings):
@@ -25,4 +26,9 @@ class Settings(BaseSettings):
25
26
)
27
28
-config = Settings()
29
+@lru_cache
30
+def get_config() -> BaseSettings:
31
+ return Settings()
32
+
33
34
+config = get_config()
0 commit comments