Skip to main content

servers_from_env

Function servers_from_env 

Source
pub fn servers_from_env() -> Result<Vec<ServerAddr>, String>
Expand description

Parses NATS_SERVERS, defaulting to DEFAULT_NATS_SERVERS.

ยงErrors

Returns an error message under the same conditions as servers_from_env_var.