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

Method getParentID

internal/channelz/channel.go:193–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191}
192
193func (c *Channel) getParentID() int64 {
194 if c.Parent == nil {
195 return -1
196 }
197 return c.Parent.ID
198}
199
200// deleteSelfFromTree tries to delete the channel from the channelz entry relation tree, which means
201// deleting the channel reference from its parent's child list.

Callers 1

RegisterChannelFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected