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

Method getSubChannel

internal/channelz/channelmap.go:329–333  ·  view source on GitHub ↗
(id int64)

Source from the content-addressed store, hash-verified

327}
328
329func (c *channelMap) getSubChannel(id int64) *SubChannel {
330 c.mu.RLock()
331 defer c.mu.RUnlock()
332 return c.subChannels[id]
333}
334
335func (c *channelMap) getSocket(id int64) *Socket {
336 c.mu.RLock()

Callers 1

GetSubChannelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected