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

Method partition_mut

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

Mutable access to a tenant's partition, if it exists.

(&mut self, tid: TenantId)

Source from the content-addressed store, hash-verified

69
70 /// Mutable access to a tenant's partition, if it exists.
71 pub fn partition_mut(&mut self, tid: TenantId) -> Option<&mut CsrIndex> {
72 self.partitions.get_mut(&tid)
73 }
74
75 /// Mutable access to a tenant's partition, creating an empty one
76 /// on first use.

Callers 1

sweep_dangling_edgesMethod · 0.80

Calls 1

get_mutMethod · 0.45

Tested by

no test coverage detected