mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-05 21:57:09 +02:00
Change Scrape Loop mtx to Mutex (#7553)
It was still RWLock but we never use the read lock.. Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
6a00626ee9
commit
190addffd8
@ -161,7 +161,7 @@ type scrapePool struct {
|
|||||||
appendable storage.Appendable
|
appendable storage.Appendable
|
||||||
logger log.Logger
|
logger log.Logger
|
||||||
|
|
||||||
mtx sync.RWMutex
|
mtx sync.Mutex
|
||||||
config *config.ScrapeConfig
|
config *config.ScrapeConfig
|
||||||
client *http.Client
|
client *http.Client
|
||||||
// Targets and loops must always be synchronized to have the same
|
// Targets and loops must always be synchronized to have the same
|
||||||
@ -1188,7 +1188,7 @@ loop:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Increment added even if there's an error so we correctly report the
|
// Increment added even if there's an error so we correctly report the
|
||||||
// number of samples remaining after relabelling.
|
// number of samples remaining after relabeling.
|
||||||
added++
|
added++
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user