Skip to main content

production_rpc_client

Function production_rpc_client 

Source
pub fn production_rpc_client(
    service_name: &str,
    signing_key: SigningKey,
    token: Option<String>,
) -> Result<Arc<dyn RpcClient>>
Expand description

Construct an ordinary production RPC client. Production authority cannot be implemented, injected, or replaced by a downstream caller.

ⓘ
use hyprstream_rpc::{ResolvedRpcClient, ServiceResolver};
ⓘ
use hyprstream_discovery::{DiscoveryServiceResolver, ResolvedService};

Raw accepted evidence, candidates, selection, and the selected transport/key bundle are private to Discovery’s checkpoint-verifying implementation.

ⓘ
use hyprstream_rpc::{
    select_service_candidate, AcceptedStateEvidence, AnchoredKemRecipient,
    SelectedService, ServiceCandidate,
};