| 226 | } |
| 227 | |
| 228 | type powerOfRandomNChoices struct { |
| 229 | mu sync.Mutex |
| 230 | rnd *rand.Rand |
| 231 | numberOfChoices int |
| 232 | } |
| 233 | |
| 234 | // newPowerOfRandomNChoices selects N random backends and picks the one with less outstanding requests. |
| 235 | func newPowerOfRandomNChoices([]string) routing.LBAlgorithm { |
nothing calls this directly
no outgoing calls
no test coverage detected