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

Method HandleRPC

test/stats_test.go:131–136  ·  view source on GitHub ↗
(ctx context.Context, rs stats.RPCStats)

Source from the content-addressed store, hash-verified

129}
130
131func (h *peerStatsHandler) HandleRPC(ctx context.Context, rs stats.RPCStats) {
132 p, _ := peer.FromContext(ctx)
133 h.mu.Lock()
134 defer h.mu.Unlock()
135 h.args = append(h.args, peerStats{rs, p})
136}
137
138func (h *peerStatsHandler) TagConn(ctx context.Context, _ *stats.ConnTagInfo) context.Context {
139 return ctx

Callers

nothing calls this directly

Calls 3

FromContextFunction · 0.92
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected