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

Method reset

picker_wrapper.go:212–215  ·  view source on GitHub ↗

reset clears the pickerWrapper and prepares it for being used again when idle mode is exited.

()

Source from the content-addressed store, hash-verified

210// reset clears the pickerWrapper and prepares it for being used again when idle
211// mode is exited.
212func (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.

Callers 1

enterIdleModeMethod · 0.45

Calls 1

SwapMethod · 0.45

Tested by

no test coverage detected