Skip to main content

replicas

Function replicas 

Source
pub fn replicas(s: &str) -> Result<Vec<String>, String>
Expand description

A replica list: "http://a:4318, http://b:4318".

One comma-separated string rather than a YAML sequence, which would read better and is the one shape this file cannot hold. Every value Mira reads from it is a string (see scalar), and check_keys refuses a list at every path precisely so that a list where a string belongs is an error instead of a silent default — one exception costs that rule. The flag form is --replica URI, repeated, which is what anyone types anyway.

http:// only. A replica is this deployment’s own node on its own network, and refusing the other scheme here is what keeps the proxy’s client free of the eleven crates behind webhook-tls (see crate::proxy). The trailing slash is trimmed so that a pasted browser URL and a typed one produce the same request line.