| 211 | } |
| 212 | |
| 213 | type picker struct { |
| 214 | // choiceCount is the number of random endpoints to sample for choosing the |
| 215 | // one with the least requests. |
| 216 | choiceCount uint32 |
| 217 | endpointStates []endpointState |
| 218 | } |
| 219 | |
| 220 | func (p *picker) Pick(pInfo balancer.PickInfo) (balancer.PickResult, error) { |
| 221 | var pickedEndpointState *endpointState |
nothing calls this directly
no outgoing calls
no test coverage detected