From 39aa49176c717b03b7ad1646aa271c45c8afd3e3 Mon Sep 17 00:00:00 2001
From: muXxer <mux3r@web.de>
Date: Tue, 17 Sep 2019 21:18:30 +0200
Subject: [PATCH] Fixes wrong value in EvictionCallback

---
 packages/datastructure/lru_cache.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/datastructure/lru_cache.go b/packages/datastructure/lru_cache.go
index 3956eb1e..469e54a9 100644
--- a/packages/datastructure/lru_cache.go
+++ b/packages/datastructure/lru_cache.go
@@ -246,7 +246,7 @@ func (cache *LRUCache) Delete(key interface{}) bool {
 		keyMutex.Unlock()
 
 		if cache.options.EvictionCallback != nil {
-			cache.options.EvictionCallback(key, entry.GetValue().(*lruCacheElement).key)
+			cache.options.EvictionCallback(key, entry.GetValue().(*lruCacheElement).value)
 		}
 
 		return true
-- 
GitLab