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

Method count

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

Number of active sessions.

(&self)

Source from the content-addressed store, hash-verified

60
61 /// Number of active sessions.
62 pub fn count(&self) -> usize {
63 let sessions = self.sessions.read().unwrap_or_else(|p| p.into_inner());
64 sessions.len()
65 }
66
67 /// Look up cached physical tasks for a SQL string in the
68 /// session's plan cache. `current_version` maps each

Callers 6

show_clusterFunction · 0.45
listener_countMethod · 0.45
try_validate_jwtFunction · 0.45
unresolved_entriesMethod · 0.45

Calls 2

readMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected