mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
use the right key for lookup in the lru
This commit is contained in:
2
pkg/cache/cache.go
vendored
2
pkg/cache/cache.go
vendored
@@ -76,7 +76,7 @@ func (c *cache) Get(key string, val interface{}) error {
|
||||
k := c.Key(key)
|
||||
|
||||
// try the LRU
|
||||
v, ok := c.LRU.Get(key)
|
||||
v, ok := c.LRU.Get(k)
|
||||
if ok {
|
||||
i := v.(*item)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user