fix: add seconds definition

This commit is contained in:
Kevin Tsang 2022-06-29 14:13:52 +08:00
parent 178440bcdd
commit fa4cc95fd4

View File

@ -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 {