for issue #1530, accept @JessonChan's suggestion

This commit is contained in:
youngsterxyf
2016-01-08 20:16:58 +08:00
parent bb43d3a78c
commit 0b0904db13
9 changed files with 11 additions and 11 deletions

2
cache/file.go vendored
View File

@@ -147,7 +147,7 @@ func (fc *FileCache) Put(key string, val interface{}, timeout time.Duration) err
item := FileCacheItem{Data: val}
if timeout == FileCacheEmbedExpiry {
item.Expired = time.Now().Add(time.Second * (86400 * 365 * 10)) // ten years
item.Expired = time.Now().Add((86400 * 365 * 10) * time.Second) // ten years
} else {
item.Expired = time.Now().Add(timeout)
}