(count int)
| 360 | return p.shared.RetireWorkerIfNoSessions(id) |
| 361 | } |
| 362 | |
| 363 | func (p *OrgReservedPool) Worker(id int) (*ManagedWorker, bool) { |
| 364 | p.shared.mu.RLock() |
| 365 | defer p.shared.mu.RUnlock() |
| 366 | w, ok := p.shared.workers[id] |
| 367 | if !ok || !p.workerBelongsToOrgLocked(w) { |
nothing calls this directly
no outgoing calls
no test coverage detected