mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
chore: fix some function names in comments (#1862)
Signed-off-by: threehonor <pengqi@email.cn>
This commit is contained in:
2
common/cache/lru.go
vendored
2
common/cache/lru.go
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user