MCPcopy Create free account
hub / github.com/ceramicnetwork/rust-ceramic / get_addr_loop

Function get_addr_loop

p2p/tests/node.rs:96–103  ·  view source on GitHub ↗
(client: P2pClient)

Source from the content-addressed store, hash-verified

94}
95
96async fn get_addr_loop(client: P2pClient) -> Result<Multiaddr> {
97 loop {
98 let l = client.listeners().await?;
99 if let Some(a) = l.first() {
100 return Ok(a.clone());
101 }
102 }
103}
104
105struct TestRunner {
106 /// The task that runs the p2p node.

Callers 1

buildMethod · 0.85

Calls 3

listenersMethod · 0.45
firstMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected