mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-15 09:36:38 +02:00
Replace the only parentCtx with appCtx
If this doesn't cause the memory increase then the retention is in `sl.ctx` Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
This commit is contained in:
parent
e59f35baa6
commit
519930a61b
@ -1288,7 +1288,7 @@ func (sl *scrapeLoop) scrapeAndReport(last, appendTime time.Time, errc chan<- er
|
||||
}
|
||||
|
||||
var contentType string
|
||||
scrapeCtx, cancel := context.WithTimeout(sl.parentCtx, sl.timeout)
|
||||
scrapeCtx, cancel := context.WithTimeout(sl.appCtx, sl.timeout)
|
||||
contentType, scrapeErr = sl.scraper.scrape(scrapeCtx, buf)
|
||||
cancel()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user