Skip to content

Commit

Permalink
fix things
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Jan 4, 2024
1 parent 188fc76 commit 4a42d89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nexus/analyzer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,12 +800,16 @@ fn parse_db_options(
Ok(config)
}

fn parse_metadata_db_info(conn_str: Option<&str>) -> anyhow::Result<Option<PostgresConfig>> {
fn parse_metadata_db_info(conn_str: Option<&&str>) -> anyhow::Result<Option<PostgresConfig>> {
let conn_str = match conn_str {
Some(conn_str) => conn_str,
None => return Ok(None),
};

if conn_str.is_empty() {
return Ok(None);
}

let mut metadata_db = PostgresConfig::default();
let param_pairs: Vec<&str> = conn_str.split_whitespace().collect();
match param_pairs.len() {
Expand Down

0 comments on commit 4a42d89

Please sign in to comment.