Embed mutex on web status handler

This commit is contained in:
Bernerd Schaefer 2013-05-06 10:39:13 +02:00
parent 7740167654
commit cdde766f39

View file

@ -48,10 +48,10 @@ func (h *StatusHandler) ServeRequestsForever() {
}) })
h.PrometheusStatus = &PrometheusStatus{ h.PrometheusStatus = &PrometheusStatus{
BuildInfo: h.BuildInfo, BuildInfo: h.BuildInfo,
Config: h.Config.String(), Config: h.Config.String(),
Flags: flags, Flags: flags,
Rules: "TODO: list rules here", Rules: "TODO: list rules here",
// BUG: race condition, concurrent map access // BUG: race condition, concurrent map access
TargetPools: h.TargetManager.Pools(), TargetPools: h.TargetManager.Pools(),
} }