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

Method connect

pkg/querier/worker/worker.go:281–293  ·  view source on GitHub ↗
(address string)

Source from the content-addressed store, hash-verified

279}
280
281func (w *querierWorker) connect(address string) (*grpc.ClientConn, error) {
282 // Because we only use single long-running method, it doesn't make sense to inject user ID, send over tracing or add metrics.
283 opts, err := w.cfg.GRPCClientConfig.DialOption(nil, nil)
284 if err != nil {
285 return nil, err
286 }
287
288 conn, err := grpc.NewClient(address, opts...)
289 if err != nil {
290 return nil, err
291 }
292 return conn, nil
293}

Callers 1

AddressAddedMethod · 0.95

Calls 1

DialOptionMethod · 0.45

Tested by

no test coverage detected