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

Function SendLabelNamesStream

pkg/ingester/client/cortex_util.go:27–31  ·  view source on GitHub ↗
(s Ingester_LabelNamesStreamServer, l *LabelNamesStreamResponse)

Source from the content-addressed store, hash-verified

25}
26
27func SendLabelNamesStream(s Ingester_LabelNamesStreamServer, l *LabelNamesStreamResponse) error {
28 return sendWithContextErrChecking(s.Context(), func() error {
29 return s.Send(l)
30 })
31}
32
33func SendAsBatchToStream(totalItems int, streamBatchSize int, fn func(start, end int) error) error {
34 for i := 0; i < totalItems; i += streamBatchSize {

Callers 2

LabelNamesStreamMethod · 0.92
TestStreamingSendsFunction · 0.85

Calls 3

SendMethod · 0.65
ContextMethod · 0.45

Tested by 1

TestStreamingSendsFunction · 0.68