You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 10, 2024. It is now read-only.
Load the configuration from a common Figment instance
This should avoid loading the same files multiple times.
It should also make it easier to do post-processing on the
configuration, like validation.
This does deprecate one undocumented feature: the ability to override
some fields during the configuration generation using environment
variables.
warn!("The `--migrate` flag is deprecated and will be removed in a future release. Please use `--no-migrate` to disable automatic migrations on startup.");
@@ -101,8 +102,8 @@ impl Options {
101
102
}else{
102
103
// Sync the configuration with the database
103
104
letmut conn = pool.acquire().await?;
104
-
let clients_config = root.load_config()?;
105
-
let upstream_oauth2_config = root.load_config()?;
105
+
let clients_config = ClientsConfig::extract(figment)?;
106
+
let upstream_oauth2_config = UpstreamOAuth2Config::extract(figment)?;
0 commit comments