Fix: shadow variable

This commit is contained in:
Dreamacro 2019-01-30 20:22:52 +08:00
parent 5581698908
commit e30a628702

View File

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