aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
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)
})