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

Method partition_count

nodedb-graph/src/sharded.rs:117–119  ·  view source on GitHub ↗

Number of tenants with graph state on this core.

(&self)

Source from the content-addressed store, hash-verified

115
116 /// Number of tenants with graph state on this core.
117 pub fn partition_count(&self) -> usize {
118 self.partitions.len()
119 }
120
121 /// Iterate all (tenant, partition) pairs. Used for checkpointing,
122 /// memory accounting, and administrative views that genuinely

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected