MCPcopy Create free account
hub / github.com/PostHog/duckgres / SetMaxConnections

Method SetMaxConnections

controlplane/session_mgr.go:147–152  ·  view source on GitHub ↗

SetMaxConnections sets the maximum connections for this SessionManager.

(n int)

Source from the content-addressed store, hash-verified

145}
146
147// SetConnectionLimiter replaces the local process limiter with a cluster-wide
148// admission limiter. Local session maps still track only this control-plane's
149// live sessions.
150func (sm *SessionManager) SetConnectionLimiter(limiter connectionLimiter) {
151 sm.mu.Lock()
152 defer sm.mu.Unlock()
153 sm.limiter = limiter
154}
155

Calls 1

grantWaitersLockedMethod · 0.95