Skip to main content

join

Function join 

Source
pub async fn join(
    leader_control: SocketAddr,
    my_exchange_addr: &str,
) -> Result<(Members, String, WorkerCtl)>
Expand description

The worker side: connect to the leader’s control address, register my_exchange_addr, and receive the membership. Returns this worker’s Members and the leader-declared fingerprint (the caller checks it against its own local fingerprint — a mismatch is a topology disagreement).