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

Method invalidate

nodedb/src/control/security/session_handle/store.rs:216–219  ·  view source on GitHub ↗

Invalidate a handle. Returns true if the handle existed.

(&self, handle: &str)

Source from the content-addressed store, hash-verified

214
215 /// Invalidate a handle. Returns true if the handle existed.
216 pub fn invalidate(&self, handle: &str) -> bool {
217 let mut sessions = self.sessions.write().unwrap_or_else(|p| p.into_inner());
218 sessions.remove(handle).is_some()
219 }
220
221 /// Forget per-connection rate-limit and spike state on disconnect.
222 pub fn forget_connection(&self, conn_key: &str) {

Callers 1

delete_sessionFunction · 0.45

Calls 2

writeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected