pub(crate) async fn build_relay_swarm(
keypair: &Keypair,
local_peer_id: PeerId,
) -> Result<Swarm<RelayBehaviour>>Expand description
Build a minimal libp2p swarm that only acts as a circuit-relay v2 server.
pub(crate) async fn build_relay_swarm(
keypair: &Keypair,
local_peer_id: PeerId,
) -> Result<Swarm<RelayBehaviour>>Build a minimal libp2p swarm that only acts as a circuit-relay v2 server.