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

Function current

nodedb/src/control/server/pgwire/session/audit_context.rs:56–58  ·  view source on GitHub ↗

Return a clone of the currently-installed audit context, if any.

()

Source from the content-addressed store, hash-verified

54
55/// Return a clone of the currently-installed audit context, if any.
56pub fn current() -> Option<AuditCtx> {
57 CURRENT.with(|c| c.borrow().clone())
58}
59
60#[cfg(test)]
61mod tests {

Callers 15

header_roundtripFunction · 0.85
header_invalid_magicFunction · 0.85
header_compatible_minorFunction · 0.85
footer_roundtripFunction · 0.85
write_segmentMethod · 0.85
current_is_both_openFunction · 0.85
open_upper_is_i64_maxFunction · 0.85

Calls 2

borrowMethod · 0.80
cloneMethod · 0.45