pub fn set_global(resolver: Arc<dyn Resolver>)Expand description
Set the global resolver.
Can be called multiple times — each call replaces the previous resolver.
During bootstrap, registry::init() installs an explicit local resolver
profile. A networked deployment can replace that with a
NetworkDiscoveryResolver wrapping DiscoveryService or a DiscoveryClient.
§Example
ⓘ
// Bootstrap: registry installs itself
hyprstream_rpc::registry::init(mode, runtime_dir);
// After DiscoveryService starts, it replaces the bootstrap resolver:
hyprstream_rpc::resolver::set_global(discovery_service.clone());