Skip to content

Commit

Permalink
Update qorb dep, more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Jun 17, 2024
1 parent 5244907 commit 88f67aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
21 changes: 10 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion nexus/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,13 @@ impl ServerContext {

let pool = match &config.deployment.database {
nexus_config::Database::FromUrl { url } => {
info!(log, "Setting up qorb pool from a single host"; "url" => #?url);
db::Pool::new_qorb_single_host(&db::Config { url: url.clone() })
}
nexus_config::Database::FromDns => db::Pool::new_qorb(dns_addrs),
nexus_config::Database::FromDns => {
info!(log, "Setting up qorb pool from DNS"; "dns_addrs" => #?dns_addrs);
db::Pool::new_qorb(dns_addrs)
}
};

let nexus = Nexus::new_with_id(
Expand Down

0 comments on commit 88f67aa

Please sign in to comment.