Skip to content

Commit 748532c

Browse files
committed
fixup: Switch back to Option<PostgreSQLConfig>
1 parent d127bd1 commit 748532c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

rust/server/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ fn main() {
8989
Arc::new(NoopAuthorizer {})
9090
};
9191

92+
let postgresql_config =
93+
postgresql_config.expect("PostgreSQLConfig must be defined in config file.");
9294
let endpoint = postgresql_config.to_postgresql_endpoint();
9395
let db_name = postgresql_config.database;
9496
let store: Arc<dyn KvStore> = if let Some(tls_config) = postgresql_config.tls {

rust/server/src/util/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use serde::Deserialize;
33
#[derive(Deserialize)]
44
pub(crate) struct Config {
55
pub(crate) server_config: ServerConfig,
6-
pub(crate) postgresql_config: PostgreSQLConfig,
6+
pub(crate) postgresql_config: Option<PostgreSQLConfig>,
77
}
88

99
#[derive(Deserialize)]

0 commit comments

Comments
 (0)