Name SQL cluster configuration explicitly

This commit is contained in:
2026-11-30 18:05:01 +08:00
parent 3c551ca0a3
commit ac62c8a655
7 changed files with 22 additions and 14 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
use std::collections::BTreeMap;
use clusters::{Address, Cluster, ConfigError, DeploymentConfig, SqlDriver, Tls};
use clusters::{Address, ConfigError, DeploymentConfig, SqlCluster, SqlDriver, Tls};
#[test]
fn address_debug_formats_the_inner_string() {
@@ -14,7 +14,7 @@ fn named_cluster_requires_matching_addresses() {
cluster: Some("regional".into()),
clusters: BTreeMap::from([(
"regional".into(),
Cluster {
SqlCluster {
driver: SqlDriver::Postgres,
primary: "postgres://user:secret@primary/bedrock".into(),
replicas: vec!["postgresql://reader:secret@replica/bedrock".into()],