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

Struct idlePicker

balancer/lazy/lazy.go:150–152  ·  view source on GitHub ↗

idlePicker is used when the SubConn is IDLE and kicks the SubConn into CONNECTING when Pick is called.

Source from the content-addressed store, hash-verified

148// idlePicker is used when the SubConn is IDLE and kicks the SubConn into
149// CONNECTING when Pick is called.
150type idlePicker struct {
151 exitIdle func()
152}
153
154func (i *idlePicker) Pick(balancer.PickInfo) (balancer.PickResult, error) {
155 i.exitIdle()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected