use the right key for lookup in the lru

This commit is contained in:
Asim Aslam
2021-05-19 14:58:34 +01:00
parent d46644bf4c
commit 306e7a6409

2
pkg/cache/cache.go vendored
View File

@@ -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)