Skip to content

Commit

Permalink
fix: typo causing cache to force program to hang indefinitely
Browse files Browse the repository at this point in the history
  • Loading branch information
Oudwins committed Mar 12, 2024
1 parent d18d28f commit 6a9dbee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cache/lru.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func (lru *LRU) Get(key string) string {
lru.cacheMutex.RLock()
n := lru.cache[key]
if n == nil {
lru.cacheMutex.RUnlock()
return ""
}
lru.cacheMutex.RUnlock()
Expand Down

0 comments on commit 6a9dbee

Please sign in to comment.