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

Method reset

nodedb/src/control/security/escalation.rs:140–143  ·  view source on GitHub ↗

Reset violations for a user (e.g., after admin review).

(&self, user_id: &str)

Source from the content-addressed store, hash-verified

138
139 /// Reset violations for a user (e.g., after admin review).
140 pub fn reset(&self, user_id: &str) {
141 let mut trackers = self.trackers.write().unwrap_or_else(|p| p.into_inner());
142 trackers.remove(user_id);
143 }
144}
145
146impl Default for EscalationEngine {

Callers 1

reset_clears_violationsFunction · 0.45

Calls 2

writeMethod · 0.45
removeMethod · 0.45

Tested by 1

reset_clears_violationsFunction · 0.36