mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
lib/opentsdbhttp: fix a typo preventing from using writeconcurrencylimiter (#4208)
This commit is contained in:
parent
b21a55febf
commit
03150c8973
@ -33,7 +33,7 @@ var (
|
||||
func Parse(req *http.Request, callback func(rows []opentsdbhttp.Row) error) error {
|
||||
wcr := writeconcurrencylimiter.GetReader(req.Body)
|
||||
defer writeconcurrencylimiter.PutReader(wcr)
|
||||
r := io.Reader(req.Body)
|
||||
r := io.Reader(wcr)
|
||||
|
||||
readCalls.Inc()
|
||||
if req.Header.Get("Content-Encoding") == "gzip" {
|
||||
|
Loading…
Reference in New Issue
Block a user