reset clears the pickerWrapper and prepares it for being used again when idle mode is exited.
()
| 210 | // reset clears the pickerWrapper and prepares it for being used again when idle |
| 211 | // mode is exited. |
| 212 | func (pw *pickerWrapper) reset() { |
| 213 | old := pw.pickerGen.Swap(&pickerGeneration{blockingCh: make(chan struct{})}) |
| 214 | close(old.blockingCh) |
| 215 | } |
| 216 | |
| 217 | // dropError is a wrapper error that indicates the LB policy wishes to drop the |
| 218 | // RPC and not retry it. |