Fix: shadow variable
This commit is contained in:
parent
b71bd07424
commit
cac0fbaa5c
1 changed files with 1 additions and 1 deletions
2
common/cache/cache.go
vendored
2
common/cache/cache.go
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue