pub async fn initialize_with(&self, node: NodeId, members: BTreeSet<NodeId>) -> Result<()> {
        tracing::info!({ node }, "initializing cluster from single node");
        let rt = self.routing_table.read().await;
        rt.get(&node)
            .ok_or_else(|| anyhow!("node {} not found in routing table", node))?
            .0
            .initialize(members.clone())
            .await?;
        Ok(())
    }
/// Initialize cluster with specified node ids.
Initialize cluster with specified node ids.
Initialize cluster with specified node ids .
pub async fn initialize_with(&self, node: NodeId, members: BTreeSet<NodeId>) -> Result<()> {
        tracing::info!({ node }, "initializing cluster from single node");
        let rt = self.routing_table.read().await;
        rt.get(&node)
            .ok_or_else(|| anyhow!("node {} not found in routing table", node))?
            .0
            .initialize(members.clone())
            .await?;
        Ok(())
    }
pub async fn initialize_with ( & self , node : NodeId , members : BTreeSet < NodeId > ) -> Result < ( ) > { tracing :: info ! ( { node } " " ) ; let rt = self . routing_table . read ( ) . await ; rt . get ( & node ) . ok_or_else ( | | anyhow ! ( " " node ) ) ? . 0 . initialize ( members . clone ( ) ) . await ? ; Ok ( ( ) ) }
Initialize cluster with specified node ids.
Initialize cluster with specified node ids .
&self
node
NodeId
members
BTreeSet<NodeId>
&self
node
NodeId
members
BTreeSet<NodeId>