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/filestore.go')
-rw-r--r--internal/streamcache/filestore.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/streamcache/filestore.go b/internal/streamcache/filestore.go
index 67337c95f..c3d4d99cd 100644
--- a/internal/streamcache/filestore.go
+++ b/internal/streamcache/filestore.go
@@ -65,7 +65,7 @@ func newFilestore(dir string, maxAge time.Duration, sleep func(time.Duration), l
stop: make(chan struct{}),
}
- dontpanic.GoForever(1*time.Minute, func() {
+ dontpanic.NewForever(time.Minute).Go(func() {
sleepLoop(fs.stop, fs.maxAge, sleep, func() {
diskUsageGauge.WithLabelValues(fs.dir).Set(fs.diskUsage())