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

Method fromCache

pkg/ring/client/pool.go:85–90  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

83}
84
85func (p *Pool) fromCache(addr string) (PoolClient, bool) {
86 p.RLock()
87 defer p.RUnlock()
88 client, ok := p.clients[addr]
89 return client, ok
90}
91
92// GetClientFor gets the client for the specified address. If it does not exist it will make a new client
93// at that address

Callers 2

GetClientForMethod · 0.95
cleanUnhealthyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected