mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-12 04:53:47 +08:00
代码规范过滤,移除冗余代码,替换掉不推荐的包
This commit is contained in:
1
server/internal/library/cache/file/file.go
vendored
1
server/internal/library/cache/file/file.go
vendored
@@ -120,7 +120,6 @@ func (c *AdapterFile) UpdateExpire(ctx context.Context, key interface{}, duratio
|
||||
oldTTL = int64(expire)
|
||||
if oldTTL == -2 {
|
||||
// It does not exist.
|
||||
oldTTL = -1
|
||||
return
|
||||
}
|
||||
oldDuration = time.Duration(oldTTL) * time.Second
|
||||
|
Reference in New Issue
Block a user