MCPcopy
hub / github.com/grpc/grpc-go / Pick

Method Pick

balancer/pickfirst/pickfirst_ext_test.go:2819–2825  ·  view source on GitHub ↗
(info balancer.PickInfo)

Source from the content-addressed store, hash-verified

2817}
2818
2819func (pw *unwrappingPicker) Pick(info balancer.PickInfo) (balancer.PickResult, error) {
2820 pr, err := pw.Picker.Pick(info)
2821 if pr.SubConn != nil {
2822 pr.SubConn = pr.SubConn.(*healthListenerCapturingSCWrapper).SubConn
2823 }
2824 return pr, err
2825}
2826
2827// subConnAddresses makes the pickfirst balancer create the requested number of
2828// SubConns by triggering transient failures. The function returns the

Callers

nothing calls this directly

Calls 1

PickMethod · 0.65

Tested by

no test coverage detected