mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 04:53:29 +08:00
Fix: shadow variable
This commit is contained in:
parent
5581698908
commit
e30a628702
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 New Issue
Block a user