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

Method Write

binarylog/binarylog_end2end_test.go:72–77  ·  view source on GitHub ↗
(e *binlogpb.GrpcLogEntry)

Source from the content-addressed store, hash-verified

70}
71
72func (s *testBinLogSink) Write(e *binlogpb.GrpcLogEntry) error {
73 s.mu.Lock()
74 s.buf = append(s.buf, e)
75 s.mu.Unlock()
76 return nil
77}
78
79func (s *testBinLogSink) Close() error { return nil }
80

Callers

nothing calls this directly

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected