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

Method get

nodedb/src/config/engine.rs:168–170  ·  view source on GitHub ↗

Byte budget for a single engine (0 if — contrary to the invariant — it is absent).

(&self, engine: EngineId)

Source from the content-addressed store, hash-verified

166 /// Byte budget for a single engine (0 if — contrary to the invariant —
167 /// it is absent).
168 pub fn get(&self, engine: EngineId) -> usize {
169 self.per_engine.get(&engine).copied().unwrap_or(0)
170 }
171
172 /// Sum of all engine byte budgets.
173 pub fn total(&self) -> usize {

Callers 15

lookupFunction · 0.45
dispatchMethod · 0.45
db_pressure_on_coreMethod · 0.45
open_scansMethod · 0.45
is_drainingMethod · 0.45
read_process_majfltMethod · 0.45
scan_columnarMethod · 0.45
scan_sparseMethod · 0.45
replay_vector_walMethod · 0.45
encode_as_arrow_ipcFunction · 0.45

Calls

no outgoing calls