MCPcopy Create free account
hub / github.com/cortexproject/cortex / AddressRemoved

Method AddressRemoved

pkg/querier/worker/worker.go:226–239  ·  view source on GitHub ↗
(address string)

Source from the content-addressed store, hash-verified

224}
225
226func (w *querierWorker) AddressRemoved(address string) {
227 level.Info(w.log).Log("msg", "removing connection", "addr", address)
228
229 w.mu.Lock()
230 p := w.managers[address]
231 delete(w.managers, address)
232 // Called with lock.
233 w.resetConcurrency()
234 w.mu.Unlock()
235
236 if p != nil {
237 p.stop()
238 }
239}
240
241// Must be called with lock.
242func (w *querierWorker) resetConcurrency() {

Callers

nothing calls this directly

Calls 3

resetConcurrencyMethod · 0.95
LogMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected