From 81d6c2939ac477db751094c4ed6c25349f8c1153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 10 May 2020 14:25:10 +0200 Subject: Fix building cache --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index a1a0ffd..242dade 100644 --- a/main.go +++ b/main.go @@ -108,7 +108,9 @@ func run() error { defer c.Disconnect() } - if !*buildCache { + if *buildCache { + state.Foreach((*feed.Feed).MarkSuccess) + } else { state.ForeachGo(func(f *feed.Feed) { processFeed(f, c, *dryRun) }) -- cgit v1.2.3