(addr string, pool *client.Pool)
| 399 | } |
| 400 | |
| 401 | func 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 | |
| 412 | func buildQueryFunc( |
| 413 | engine promql.QueryEngine, |
no test coverage detected