chore: fix some function names in comments (#1862)

Signed-off-by: threehonor <pengqi@email.cn>
This commit is contained in:
threehonor
2025-03-28 11:03:31 +08:00
committed by GitHub
parent cc05f7e6fd
commit 956d38be5e
4 changed files with 4 additions and 4 deletions

2
common/cache/lru.go vendored
View File

@@ -97,7 +97,7 @@ func (l *LRU) Len() uint64 {
return uint64(l.l.Len()) //nolint:gosec // False positive as uint64 (2^64-1) can support both 2^31-1 on 32bit systems and 2^63-1 on 64bit systems
}
// removeOldest removes the oldest item from the cache.
// removeOldestEntry removes the oldest item from the cache.
func (l *LRU) removeOldestEntry() {
if i := l.l.Back(); i != nil {
l.removeElement(i)