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

Method set_bridge_queue_depth

nodedb/src/control/metrics/database.rs:109–113  ·  view source on GitHub ↗

Set the bridge queue-depth snapshot for `db_name`.

(&self, db_name: &str, depth: u64)

Source from the content-addressed store, hash-verified

107
108 /// Set the bridge queue-depth snapshot for `db_name`.
109 pub fn set_bridge_queue_depth(&self, db_name: &str, depth: u64) {
110 self.get_or_create(db_name)
111 .bridge_queue_depth
112 .store(depth, Ordering::Relaxed);
113 }
114
115 /// Set the WAL commit latency P99 (microseconds) for `db_name`.
116 pub fn set_wal_latency_p99(&self, db_name: &str, us: u64) {

Callers

nothing calls this directly

Calls 2

storeMethod · 0.45
get_or_createMethod · 0.45

Tested by

no test coverage detected