MCPcopy Index your code
hub / github.com/cortexproject/cortex / Write

Method Write

pkg/util/concurrency/buffer.go:14–19  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

12}
13
14func (sb *SyncBuffer) Write(p []byte) (n int, err error) {
15 sb.mu.Lock()
16 defer sb.mu.Unlock()
17
18 return sb.buf.Write(p)
19}
20
21func (sb *SyncBuffer) String() string {
22 sb.mu.Lock()

Callers 15

uploadNewMetaMethod · 0.45
ServeHTTPMethod · 0.45
mockQueryResponseFunction · 0.45
TestDoRequestFunction · 0.45
WriteStringMethod · 0.45
Sum64Method · 0.45
TestFrontendFunction · 0.45

Calls

no outgoing calls