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

Method SetProtocol

controlplane/session_mgr.go:1041–1047  ·  view source on GitHub ↗

SetProtocol updates the protocol label for an active session.

(pid int32, protocol string)

Source from the content-addressed store, hash-verified

1039 return WorkerProfile{}, false
1040 }
1041 return w.Profile(), true
1042}
1043
1044// GetProgress returns the cached query progress for a session, or nil.
1045func (sm *SessionManager) GetProgress(pid int32) *SessionProgress {
1046 sm.mu.RLock()
1047 s, ok := sm.sessions[pid]
1048 sm.mu.RUnlock()
1049 if !ok {
1050 return nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected