MCPcopy
hub / github.com/grafana/dskit / Count

Method Count

ring/client/pool.go:232–236  ·  view source on GitHub ↗

Count returns how many clients are in the cache

()

Source from the content-addressed store, hash-verified

230
231// Count returns how many clients are in the cache
232func (p *Pool) Count() int {
233 p.RLock()
234 defer p.RUnlock()
235 return len(p.members)
236}
237
238func (p *Pool) removeStaleClients() {
239 // Only if service discovery has been configured.

Calls

no outgoing calls