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

Function newRRPicker

balancer/grpclb/grpclb_picker.go:112–117  ·  view source on GitHub ↗
(readySCs []balancer.SubConn)

Source from the content-addressed store, hash-verified

110}
111
112func newRRPicker(readySCs []balancer.SubConn) *rrPicker {
113 return &rrPicker{
114 subConns: readySCs,
115 subConnsNext: rand.IntN(len(readySCs)),
116 }
117}
118
119func (p *rrPicker) Pick(balancer.PickInfo) (balancer.PickResult, error) {
120 p.mu.Lock()

Callers 1

regeneratePickerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected