mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 08:23:34 +01:00
all: rename ParseStream -> stream.Parse
This is a follow-up for 057698f7fb
This commit is contained in:
parent
f987fb9c8b
commit
9fd003d54a
@ -39,7 +39,7 @@ type client struct {
|
||||
// hc is the default client optimized for common case of scraping targets with moderate number of metrics.
|
||||
hc *fasthttp.HostClient
|
||||
|
||||
// sc (aka `stream client`) is used instead of hc if ScrapeWork.ParseStream is set.
|
||||
// sc (aka `stream client`) is used instead of hc if ScrapeWork.StreamParse is set.
|
||||
// It may be useful for scraping targets with millions of metrics per target.
|
||||
sc *http.Client
|
||||
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
"github.com/VictoriaMetrics/VictoriaMetrics/lib/protoparser/prometheus"
|
||||
)
|
||||
|
||||
func TestParseStream(t *testing.T) {
|
||||
func TestParse(t *testing.T) {
|
||||
common.StartUnmarshalWorkers()
|
||||
defer common.StopUnmarshalWorkers()
|
||||
|
||||
|
@ -32,7 +32,7 @@ func Parse(r io.Reader, callback func(tss []prompb.TimeSeries) error) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Synchronously process the request in order to properly return errors to ParseStream caller,
|
||||
// Synchronously process the request in order to properly return errors to Parse caller,
|
||||
// so it could properly return HTTP 503 status code in response.
|
||||
// See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/896
|
||||
bb := bodyBufferPool.Get()
|
||||
|
Loading…
Reference in New Issue
Block a user