MCPcopy Index your code
hub / github.com/cortexproject/cortex / resolveFrontendClient

Function resolveFrontendClient

pkg/ruler/compat.go:401–410  ·  view source on GitHub ↗
(addr string, pool *client.Pool)

Source from the content-addressed store, hash-verified

399}
400
401func resolveFrontendClient(addr string, pool *client.Pool) (*frontendClient, error) {
402 if addr == "" {
403 return nil, nil
404 }
405 c, err := pool.GetClientFor(addr)
406 if err != nil {
407 return nil, err
408 }
409 return c.(*frontendClient), nil
410}
411
412func buildQueryFunc(
413 engine promql.QueryEngine,

Callers 1

Calls 1

GetClientForMethod · 0.65

Tested by

no test coverage detected