mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +00:00
lib/promscrape: typo fix after ed8441ec52
This commit is contained in:
parent
e38ca28d99
commit
50e74c439c
1 changed files with 3 additions and 1 deletions
|
@ -563,7 +563,9 @@ func (swc *scrapeWorkCache) Get(key string) *ScrapeWork {
|
||||||
currentTime := fasttime.UnixTimestamp()
|
currentTime := fasttime.UnixTimestamp()
|
||||||
swc.mu.Lock()
|
swc.mu.Lock()
|
||||||
swe := swc.m[key]
|
swe := swc.m[key]
|
||||||
|
if swe != nil {
|
||||||
swe.lastAccessTime = currentTime
|
swe.lastAccessTime = currentTime
|
||||||
|
}
|
||||||
swc.mu.Unlock()
|
swc.mu.Unlock()
|
||||||
return swe.sw
|
return swe.sw
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue