Skip to content

Commit a3474ed

Browse files
committed
Code style
1 parent 97505f0 commit a3474ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ func (c *Cache) processRecords(now int64) {
412412
return true
413413
}
414414
if r.Expired(now) {
415+
c.delete(key, r)
415416
// It is safe to lock r.mu while holding c.mu,
416417
// the record is already active.
417-
c.delete(key, r)
418418
r.mu.Lock()
419419
defer r.mu.Unlock()
420420
c.finalize(key, r)

0 commit comments

Comments
 (0)