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

Method iteration

pkg/ring/client/pool.go:77–83  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

75}
76
77func (p *Pool) iteration(ctx context.Context) error {
78 p.removeStaleClients()
79 if p.cfg.HealthCheckEnabled {
80 p.cleanUnhealthy()
81 }
82 return nil
83}
84
85func (p *Pool) fromCache(addr string) (PoolClient, bool) {
86 p.RLock()

Callers

nothing calls this directly

Calls 2

removeStaleClientsMethod · 0.95
cleanUnhealthyMethod · 0.95

Tested by

no test coverage detected