mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/promscrape: typo fix, which prevented from caching ScrapeWork entries
This commit is contained in:
parent
d5058caccc
commit
5328506c3e
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ func (swc *scrapeWorkConfig) getScrapeWork(target string, extraLabels, metaLabel
|
||||||
return sw, nil
|
return sw, nil
|
||||||
}
|
}
|
||||||
sw, err := swc.getScrapeWorkReal(target, extraLabels, metaLabels)
|
sw, err := swc.getScrapeWorkReal(target, extraLabels, metaLabels)
|
||||||
if err != nil {
|
if err == nil {
|
||||||
swc.cache.Set(string(bb.B), sw)
|
swc.cache.Set(string(bb.B), sw)
|
||||||
}
|
}
|
||||||
return sw, err
|
return sw, err
|
||||||
|
|
Loading…
Reference in a new issue