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

Method releaseRef

balancer/rls/child_policy.go:95–98  ·  view source on GitHub ↗

releaseRef decrements the reference count on the child policy wrapper. The return value indicates whether the released reference was the last one.

()

Source from the content-addressed store, hash-verified

93// releaseRef decrements the reference count on the child policy wrapper. The
94// return value indicates whether the released reference was the last one.
95func (c *childPolicyWrapper) releaseRef() bool {
96 c.refCnt--
97 return c.refCnt == 0
98}
99
100// lamify causes the child policy wrapper to return a picker which will always
101// fail requests. This is used when the wrapper runs into errors when trying to

Callers 3

sendNewPickerLockedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected