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

Method getServer

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

Source from the content-addressed store, hash-verified

339}
340
341func (c *channelMap) getServer(id int64) *Server {
342 c.mu.RLock()
343 defer c.mu.RUnlock()
344 return c.servers[id]
345}
346
347type dummyEntry struct {
348 // dummyEntry is a fake entry to handle entry not found case.

Callers 1

GetServerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected