MCPcopy Create free account
hub / github.com/erans/pgsqlite / remove_connection

Method remove_connection

src/session/connection_manager.rs:144–152  ·  view source on GitHub ↗

Remove a connection when session ends

(&self, session_id: &Uuid)

Source from the content-addressed store, hash-verified

142
143 /// Remove a connection when session ends
144 pub fn remove_connection(&self, session_id: &Uuid) {
145 // Remove from thread-local cache first
146 ThreadLocalConnectionCache::remove(session_id);
147
148 let mut connections = self.connections.write();
149 if connections.remove(session_id).is_some() {
150 info!("Removed connection for session {} (remaining connections: {})", session_id, connections.len());
151 }
152 }
153
154 /// Get the number of active connections
155 pub fn active_connections(&self) -> usize {

Callers 1

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected