Skip to content

Commit

Permalink
fix: clean correct storage
Browse files Browse the repository at this point in the history
  • Loading branch information
msvticket committed Mar 6, 2024
1 parent 67a2406 commit 63a7dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 63a7dde

Please sign in to comment.