We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Option<PostgreSQLConfig>
1 parent d127bd1 commit 748532cCopy full SHA for 748532c
2 files changed
rust/server/src/main.rs
@@ -89,6 +89,8 @@ fn main() {
89
Arc::new(NoopAuthorizer {})
90
};
91
92
+ let postgresql_config =
93
+ postgresql_config.expect("PostgreSQLConfig must be defined in config file.");
94
let endpoint = postgresql_config.to_postgresql_endpoint();
95
let db_name = postgresql_config.database;
96
let store: Arc<dyn KvStore> = if let Some(tls_config) = postgresql_config.tls {
rust/server/src/util/config.rs
@@ -3,7 +3,7 @@ use serde::Deserialize;
3
#[derive(Deserialize)]
4
pub(crate) struct Config {
5
pub(crate) server_config: ServerConfig,
6
- pub(crate) postgresql_config: PostgreSQLConfig,
+ pub(crate) postgresql_config: Option<PostgreSQLConfig>,
7
}
8
9
0 commit comments