mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-26 10:26:30 +00:00
Pass real server info to the client (#10)
This commit is contained in:
@@ -90,6 +90,11 @@ pub async fn parse(path: &str) -> Result<Config, Error> {
|
||||
let mut dup_check = HashSet::new();
|
||||
let mut primary_count = 0;
|
||||
|
||||
if shard.1.servers.len() == 0 {
|
||||
println!("> Shard {} has no servers configured", shard.0);
|
||||
return Err(Error::BadConfig);
|
||||
}
|
||||
|
||||
for server in &shard.1.servers {
|
||||
dup_check.insert(server);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user