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

Method addServer

internal/channelz/channelmap.go:75–80  ·  internal/channelz/channelmap.go::channelMap.addServer
(id int64, s *Server)

Source from the content-addressed store, hash-verified

73}
74
75func (c *channelMap) addServer(id int64, s *Server) {
76 c.mu.Lock()
77 defer c.mu.Unlock()
78 s.cm = c
79 c.servers[id] = s
80}
81
82func (c *channelMap) addChannel(id int64, cn *Channel, isTopChannel bool, pid int64) {
83 c.mu.Lock()

Callers 1

RegisterServerFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected