Skip to main content

pb_mapper_server_addr

Function pb_mapper_server_addr 

Source
pub fn pb_mapper_server_addr(addr: Option<&str>) -> Result<String>
Expand description

The relay address as configured: addr if given, else PB_MAPPER_SERVER.

Unresolved on purpose. A caller that hands the address to something which resolves it itself — the SDK client, for one — should pass the name along rather than resolve it here and stringify the result, which both duplicates the lookup and narrows a multi-address name down to one entry on the way.