mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/promscrape: yet another typo fix after ed8441ec52
This commit is contained in:
parent
c1b8729bd8
commit
44975e28fe
1 changed files with 3 additions and 0 deletions
|
@ -567,6 +567,9 @@ func (swc *scrapeWorkCache) Get(key string) *ScrapeWork {
|
||||||
swe.lastAccessTime = currentTime
|
swe.lastAccessTime = currentTime
|
||||||
}
|
}
|
||||||
swc.mu.Unlock()
|
swc.mu.Unlock()
|
||||||
|
if swe == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return swe.sw
|
return swe.sw
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue