diff --git a/scouterx/common/structure/lra/lra.go b/scouterx/common/structure/lra/lra.go index 94d02d1..317681d 100644 --- a/scouterx/common/structure/lra/lra.go +++ b/scouterx/common/structure/lra/lra.go @@ -114,8 +114,8 @@ func (c *Cache) Clear() { c.OnEvicted(kv.key, kv.value) } } - c.lst = nil - c.table = nil + c.lst = list.New() + c.table = make(map[interface{}]*list.Element) } func (c *Cache) GetValues() []interface{} {