MCPcopy Create free account
hub / github.com/cortexproject/cortex / PreallocWriteRequestV2FromPool

Function PreallocWriteRequestV2FromPool

pkg/cortexpb/timeseriesv2.go:92–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92func PreallocWriteRequestV2FromPool() *PreallocWriteRequestV2 {
93 return writeRequestPoolV2.Get().(*PreallocWriteRequestV2)
94}
95
96// Reset implements proto.Message and preserves the capacity of the Symbols slice.
97func (p *PreallocWriteRequestV2) Reset() {

Callers 4

HandlerFunction · 0.92
runPRW2HandleFromPoolFunction · 0.92
TestReuseWriteRequestV2Function · 0.85

Calls 1

GetMethod · 0.65

Tested by 3

runPRW2HandleFromPoolFunction · 0.74
TestReuseWriteRequestV2Function · 0.68