Name SQL cluster configuration explicitly
This commit is contained in:
@@ -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()],
|
||||
|
||||
Reference in New Issue
Block a user