From e30a628702617f3fa134cc24665672b768e2bc92 Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Wed, 30 Jan 2019 20:22:52 +0800 Subject: [PATCH] Fix: shadow variable --- common/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cache/cache.go b/common/cache/cache.go index bb16adca..6b252c20 100644 --- a/common/cache/cache.go +++ b/common/cache/cache.go @@ -45,7 +45,7 @@ func (c *cache) Get(key interface{}) interface{} { } // GetWithExpire element in Cache with Expire Time -func (c *cache) GetWithExpire(key interface{}) (item interface{}, expired time.Time) { +func (c *cache) GetWithExpire(key interface{}) (payload interface{}, expired time.Time) { item, exist := c.mapping.Load(key) if !exist { return