SetProtocol updates the protocol label for an active session.
(pid int32, protocol string)
| 1039 | return WorkerProfile{}, false |
| 1040 | } |
| 1041 | return w.Profile(), true |
| 1042 | } |
| 1043 | |
| 1044 | // GetProgress returns the cached query progress for a session, or nil. |
| 1045 | func (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 |
nothing calls this directly
no outgoing calls
no test coverage detected