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

Method resolverError

balancer_wrapper.go:143–150  ·  view source on GitHub ↗

resolverError is invoked by grpc to push a resolver error to the underlying balancer. The call to the balancer is executed from the serializer.

(err error)

Source from the content-addressed store, hash-verified

141// resolverError is invoked by grpc to push a resolver error to the underlying
142// balancer. The call to the balancer is executed from the serializer.
143func (ccb *ccBalancerWrapper) resolverError(err error) {
144 ccb.serializer.TrySchedule(func(ctx context.Context) {
145 if ctx.Err() != nil || ccb.balancer == nil {
146 return
147 }
148 ccb.balancer.ResolverError(err)
149 })
150}
151
152// close initiates async shutdown of the wrapper. cc.mu must be held when
153// calling this function. To determine the wrapper has finished shutting down,

Callers 1

Calls 3

ErrMethod · 0.80
ResolverErrorMethod · 0.65
TryScheduleMethod · 0.45

Tested by

no test coverage detected