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

Method copy

internal/channelz/trace.go:99–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func (c *ChannelTrace) copy() *ChannelTrace {
100 return &ChannelTrace{
101 CreationTime: c.CreationTime,
102 EventNum: c.EventNum,
103 Events: append(([]*traceEvent)(nil), c.Events...),
104 }
105}
106
107func (c *ChannelTrace) append(e *traceEvent) {
108 c.mu.Lock()

Callers 2

TraceMethod · 0.80
TraceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected