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

Method remove

nodedb/src/control/server/pgwire/session/store.rs:40–43  ·  view source on GitHub ↗

Remove a session (connection closed).

(&self, addr: &SocketAddr)

Source from the content-addressed store, hash-verified

38
39 /// Remove a session (connection closed).
40 pub fn remove(&self, addr: &SocketAddr) {
41 let mut sessions = self.sessions.write().unwrap_or_else(|p| p.into_inner());
42 sessions.remove(addr);
43 }
44
45 /// List all active sessions as (peer_address, transaction_state) pairs.
46 pub fn all_sessions(&self) -> Vec<(String, String)> {

Callers 15

session_cleanupFunction · 0.45
unlisten_channelMethod · 0.45
close_cursorMethod · 0.45
drop_collectionFunction · 0.45
resetMethod · 0.45
handle_drop_databaseFunction · 0.45
verify_hash_chainFunction · 0.45
alter_formatFunction · 0.45
drop_sequenceFunction · 0.45
collect_rowsFunction · 0.45
aggregate_by_collectionFunction · 0.45

Calls 1

writeMethod · 0.45

Tested by 1

session_cleanupFunction · 0.36