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

Method Close

credentials/tls/certprovider/store.go:98–102  ·  view source on GitHub ↗

Close overrides the Close method of the embedded provider to avoid release the already released reference.

()

Source from the content-addressed store, hash-verified

96// Close overrides the Close method of the embedded provider to avoid release the
97// already released reference.
98func (w *singleCloseWrappedProvider) Close() {
99 newProvider := Provider(closedProvider{})
100 oldProvider := w.provider.Swap(&newProvider)
101 (*oldProvider).Close()
102}
103
104// KeyMaterial returns the key material sourced by the Provider.
105// Callers are expected to use the returned value as read-only.

Callers

nothing calls this directly

Calls 3

ProviderInterface · 0.85
CloseMethod · 0.65
SwapMethod · 0.45

Tested by

no test coverage detected