Skip to content

Commit 6a9dbee

Browse files
committed
fix: typo causing cache to force program to hang indefinitely
1 parent d18d28f commit 6a9dbee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cache/lru.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func (lru *LRU) Get(key string) string {
2828
lru.cacheMutex.RLock()
2929
n := lru.cache[key]
3030
if n == nil {
31+
lru.cacheMutex.RUnlock()
3132
return ""
3233
}
3334
lru.cacheMutex.RUnlock()

0 commit comments

Comments
 (0)