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

Method len

nodedb-cluster/src/applied_watcher/registry.rs:89–91  ·  view source on GitHub ↗

Number of groups currently registered. Useful for metrics.

(&self)

Source from the content-addressed store, hash-verified

87
88 /// Number of groups currently registered. Useful for metrics.
89 pub fn len(&self) -> usize {
90 self.inner.read().unwrap_or_else(|p| p.into_inner()).len()
91 }
92
93 pub fn is_empty(&self) -> bool {
94 self.len() == 0

Callers 5

token_to_hexFunction · 0.45
verify_tokenFunction · 0.45
hex_decodeFunction · 0.45
rejects_tampered_macFunction · 0.45
is_emptyMethod · 0.45

Calls 1

readMethod · 0.45

Tested by 1

rejects_tampered_macFunction · 0.36