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