mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +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()
|
||||
swc.mu.Lock()
|
||||
swe := swc.m[key]
|
||||
swe.lastAccessTime = currentTime
|
||||
if swe != nil {
|
||||
swe.lastAccessTime = currentTime
|
||||
}
|
||||
swc.mu.Unlock()
|
||||
return swe.sw
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue