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

Method exitIdle

balancer_wrapper.go:171–178  ·  view source on GitHub ↗

exitIdle invokes the balancer's exitIdle method in the serializer.

()

Source from the content-addressed store, hash-verified

169
170// exitIdle invokes the balancer's exitIdle method in the serializer.
171func (ccb *ccBalancerWrapper) exitIdle() {
172 ccb.serializer.TrySchedule(func(ctx context.Context) {
173 if ctx.Err() != nil || ccb.balancer == nil {
174 return
175 }
176 ccb.balancer.ExitIdle()
177 })
178}
179
180func (ccb *ccBalancerWrapper) NewSubConn(addrs []resolver.Address, opts balancer.NewSubConnOptions) (balancer.SubConn, error) {
181 ccb.cc.mu.Lock()

Callers 3

ConnectMethod · 0.45
PickMethod · 0.45
PickMethod · 0.45

Calls 3

ErrMethod · 0.80
ExitIdleMethod · 0.65
TryScheduleMethod · 0.45

Tested by

no test coverage detected