From 63a7ddec52da3a5756d1bb7c4e0b5b83491fa5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Svantesson?= Date: Wed, 6 Mar 2024 13:51:16 +0100 Subject: [PATCH] fix: clean correct storage --- internal/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/main.go b/internal/main.go index b7309d8..b7aff61 100644 --- a/internal/main.go +++ b/internal/main.go @@ -43,11 +43,11 @@ func main() { if config.Cache.CacheTime != 0 { ticker := time.NewTicker(config.Cache.CleanInterval) go func(ticker *time.Ticker) { - storage.RemoveUnusedArtifacts(controller) + cache.RemoveUnusedArtifacts(controller) for { select { case <-ticker.C: - storage.RemoveUnusedArtifacts(controller) + cache.RemoveUnusedArtifacts(controller) } } }(ticker)