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

Method Count

pkg/ring/client/pool.go:149–153  ·  view source on GitHub ↗

Count returns how many clients are in the cache

()

Source from the content-addressed store, hash-verified

147
148// Count returns how many clients are in the cache
149func (p *Pool) Count() int {
150 p.RLock()
151 defer p.RUnlock()
152 return len(p.clients)
153}
154
155func (p *Pool) removeStaleClients() {
156 // Only if service discovery has been configured.

Callers 3

TestPoolCacheFunction · 0.95
SeriesMethod · 0.45
SeriesMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestPoolCacheFunction · 0.76