MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / probe

Method probe

nodedb-cluster/tests/reachability_loop.rs:44–52  ·  view source on GitHub ↗
(&self, peer: u64)

Source from the content-addressed store, hash-verified

42#[async_trait]
43impl ReachabilityProber for Flappy {
44 async fn probe(&self, peer: u64) -> Result<()> {
45 if self.healthy.load(Ordering::SeqCst) {
46 Ok(())
47 } else {
48 Err(ClusterError::Transport {
49 detail: format!("mock: peer {peer} unreachable"),
50 })
51 }
52 }
53}
54
55#[tokio::test(flavor = "multi_thread", worker_threads = 2)]

Callers

nothing calls this directly

Calls 5

failure_countMethod · 0.80
loadMethod · 0.45
checkMethod · 0.45
record_successMethod · 0.45
record_failureMethod · 0.45

Tested by

no test coverage detected