mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Merge pull request #3968 from zjwzte/fix-magic-number
Fix magic number.
This commit is contained in:
commit
184b6e3767
|
@ -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)
|
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())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
sp := &scrapePool{
|
sp := &scrapePool{
|
||||||
|
|
Loading…
Reference in a new issue