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

Function copyMap

internal/channelz/channelmap.go:229–235  ·  view source on GitHub ↗
(m map[int64]string)

Source from the content-addressed store, hash-verified

227func (s int64Slice) Less(i, j int) bool { return s[i] < s[j] }
228
229func copyMap(m map[int64]string) map[int64]string {
230 n := make(map[int64]string)
231 for k, v := range m {
232 n[k] = v
233 }
234 return n
235}
236
237func (c *channelMap) getTopChannels(id int64, maxResults int) ([]*Channel, bool) {
238 if maxResults <= 0 {

Callers 4

ListenSocketsMethod · 0.70
SubChansMethod · 0.70
NestedChansMethod · 0.70
SocketsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected