Fix: shadow variable

This commit is contained in:
gVisor bot 2019-01-30 20:22:52 +08:00
parent b71bd07424
commit cac0fbaa5c

View file

@ -45,7 +45,7 @@ func (c *cache) Get(key interface{}) interface{} {
} }
// GetWithExpire element in Cache with Expire Time // 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) item, exist := c.mapping.Load(key)
if !exist { if !exist {
return return