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

Function newCCResolverWrapper

resolver_wrapper.go:55–63  ·  view source on GitHub ↗

newCCResolverWrapper initializes the ccResolverWrapper. It can only be used after calling start, which builds the resolver.

(cc *ClientConn)

Source from the content-addressed store, hash-verified

53// newCCResolverWrapper initializes the ccResolverWrapper. It can only be used
54// after calling start, which builds the resolver.
55func newCCResolverWrapper(cc *ClientConn) *ccResolverWrapper {
56 ctx, cancel := context.WithCancel(cc.ctx)
57 return &ccResolverWrapper{
58 cc: cc,
59 ignoreServiceConfig: cc.dopts.disableServiceConfig,
60 serializer: grpcsync.NewCallbackSerializer(ctx),
61 serializerCancel: cancel,
62 }
63}
64
65// start builds the name resolver using the resolver.Builder in cc and returns
66// any error encountered. It must always be the first operation performed on

Callers 1

initIdleStateLockedMethod · 0.85

Calls 1

NewCallbackSerializerFunction · 0.92

Tested by

no test coverage detected