(addr string)
| 51 | } |
| 52 | |
| 53 | func (f *frontendPool) createFrontendClient(addr string) (client.PoolClient, error) { |
| 54 | opts, err := f.grpcConfig.DialOption(grpcclient.Instrument(f.frontendClientRequestDuration)) |
| 55 | if err != nil { |
| 56 | return nil, err |
| 57 | } |
| 58 | |
| 59 | conn, err := grpc.NewClient(addr, opts...) |
| 60 | if err != nil { |
| 61 | return nil, err |
| 62 | } |
| 63 | |
| 64 | return &frontendClient{ |
| 65 | FrontendClient: NewFrontendClient(httpgrpc.NewHTTPClient(conn), f.timeout, f.prometheusHTTPPrefix, f.queryResponseFormat), |
| 66 | HealthClient: grpc_health_v1.NewHealthClient(conn), |
| 67 | }, nil |
| 68 | } |
| 69 | |
| 70 | type frontendClient struct { |
| 71 | *FrontendClient |
nothing calls this directly
no test coverage detected