MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Len

Method Len

rpc/mux/pool.go:248–256  ·  view source on GitHub ↗

Len returns the session counts in the pool.

()

Source from the content-addressed store, hash-verified

246
247// Len returns the session counts in the pool.
248func (p *SessionPool) Len() (total int) {
249 p.RLock()
250 defer p.RUnlock()
251
252 for _, s := range p.sessions {
253 total += s.Len()
254 }
255 return
256}

Callers 1

TestNewSessionPoolFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestNewSessionPoolFunction · 0.76