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

Method dispatch

nodedb-cluster/tests/common/rebalancer.rs:69–73  ·  view source on GitHub ↗
(&self, mv: PlannedMove)

Source from the content-addressed store, hash-verified

67#[async_trait]
68impl MigrationDispatcher for RecordingDispatcher {
69 async fn dispatch(&self, mv: PlannedMove) -> Result<()> {
70 self.calls.lock().unwrap().push(mv);
71 self.any_call.store(true, Ordering::SeqCst);
72 Ok(())
73 }
74}
75
76pub fn lm(id: u64, v: u32, bytes_mib: u64, w: f64, r: f64) -> LoadMetrics {

Callers

nothing calls this directly

Calls 3

lockMethod · 0.80
pushMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected