From b7a37a1604695e335e1eef7dc59715a3367fd26b Mon Sep 17 00:00:00 2001 From: zjwzte Date: Thu, 15 Mar 2018 10:15:35 +0800 Subject: [PATCH] Fix magic number. --- scrape/scrape.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrape/scrape.go b/scrape/scrape.go index 1c3adfb72..de177333c 100644 --- a/scrape/scrape.go +++ b/scrape/scrape.go @@ -148,7 +148,7 @@ func newScrapePool(cfg *config.ScrapeConfig, app Appendable, logger log.Logger) level.Error(logger).Log("msg", "Error creating HTTP client", "err", err) } - buffers := pool.New(163, 100e6, 3, func(sz int) interface{} { return make([]byte, 0, sz) }) + buffers := pool.New(1e3, 100e6, 3, func(sz int) interface{} { return make([]byte, 0, sz) }) ctx, cancel := context.WithCancel(context.Background()) sp := &scrapePool{