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

Function core_key

nodedb/src/event/watermark.rs:146–148  ·  view source on GitHub ↗

Build the redb key for a core. Using a short string key is simpler and more debuggable than a raw byte key.

(core_id: usize)

Source from the content-addressed store, hash-verified

144/// Build the redb key for a core. Using a short string key is simpler
145/// and more debuggable than a raw byte key.
146fn core_key(core_id: usize) -> String {
147 format!("core:{core_id}")
148}
149
150#[cfg(test)]
151mod tests {

Callers 2

loadMethod · 0.85
saveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected