Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/streamcache/cache.go')
-rw-r--r--internal/streamcache/cache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/streamcache/cache.go b/internal/streamcache/cache.go
index 53c3c6c44..333be63c7 100644
--- a/internal/streamcache/cache.go
+++ b/internal/streamcache/cache.go
@@ -145,10 +145,10 @@ func New(cfg config.StreamCacheConfig, logger logrus.FieldLogger) Cache {
if cfg.Enabled {
packObjectsCacheEnabled.WithLabelValues(
cfg.Dir,
- strconv.Itoa(int(cfg.MaxAge.Seconds())),
+ strconv.Itoa(int(cfg.MaxAge.Duration().Seconds())),
).Set(1)
- return newCacheWithSleep(cfg.Dir, cfg.MaxAge, time.After, time.After, logger)
+ return newCacheWithSleep(cfg.Dir, cfg.MaxAge.Duration(), time.After, time.After, logger)
}
return NullCache{}