fix: add seconds definition
This commit is contained in:
parent
178440bcdd
commit
fa4cc95fd4
2
client/cache/random_expired_cache.go
vendored
2
client/cache/random_expired_cache.go
vendored
@ -61,7 +61,7 @@ func defaultExpiredFunc() func() time.Duration {
|
||||
const size = 5
|
||||
var randTimes [size]time.Duration
|
||||
for i := range randTimes {
|
||||
randTimes[i] = time.Duration(i + 3)
|
||||
randTimes[i] = time.Duration(i+3) * time.Second
|
||||
}
|
||||
// shuffle values
|
||||
for i := range randTimes {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user