Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
14
func
(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
21
func
(sb *SyncBuffer) String() string {
22
sb.mu.Lock()
Callers
15
uploadNewMeta
Method · 0.45
ServeHTTP
Method · 0.45
mockQueryResponse
Function · 0.45
TestDoRequest
Function · 0.45
WriteString
Method · 0.45
Sum64
Method · 0.45
TestFrontend_RequestHostHeaderWhenDownstreamURLIsConfigured
Function · 0.45
TestFrontend_LogsSlowQueries
Function · 0.45
TestFrontend_ReturnsRequestBodyTooLargeError
Function · 0.45
TestFrontend
Function · 0.45
TestFrontendPropagateTrace
Function · 0.45
TestFrontendMetricsCleanup
Function · 0.45
Calls
no outgoing calls
Tested by
15
mockQueryResponse
Function · 0.36
TestDoRequest
Function · 0.36
TestFrontend_RequestHostHeaderWhenDownstreamURLIsConfigured
Function · 0.36
TestFrontend_LogsSlowQueries
Function · 0.36
TestFrontend_ReturnsRequestBodyTooLargeError
Function · 0.36
TestFrontend
Function · 0.36
TestFrontendPropagateTrace
Function · 0.36
TestFrontendMetricsCleanup
Function · 0.36
TestQueryShardQuery
Function · 0.36
TestRoundTrip
Function · 0.36
TestRoundTrip
Function · 0.36
TestRoundTripWithAndWithoutDistributedExec
Function · 0.36