From fa4cc95fd454b2b07cb30ac951f7915ba57ea4b8 Mon Sep 17 00:00:00 2001 From: Kevin Tsang <39397413+ktalg@users.noreply.github.com> Date: Wed, 29 Jun 2022 14:13:52 +0800 Subject: [PATCH] fix: add seconds definition --- client/cache/random_expired_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cache/random_expired_cache.go b/client/cache/random_expired_cache.go index e69d2dd8..26200112 100644 --- a/client/cache/random_expired_cache.go +++ b/client/cache/random_expired_cache.go @@ -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 {