aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/cache
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2021-02-27 18:13:00 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2021-02-27 18:13:00 +0100
commit19f193eba944b28bee5240a3dd58cd6eb6b302a5 (patch)
tree7c6cfbfe3edad8de93688f48046fc681bb60c760 /internal/feed/cache
parent2ab1946a8b19b6b20abb38d79c021ca6be8bfb40 (diff)
downloadfeed2imap-go-19f193eba944b28bee5240a3dd58cd6eb6b302a5.tar.gz
feed2imap-go-19f193eba944b28bee5240a3dd58cd6eb6b302a5.tar.bz2
feed2imap-go-19f193eba944b28bee5240a3dd58cd6eb6b302a5.zip
Fix remaining use of `state.feeds`
Diffstat (limited to '')
-rw-r--r--internal/feed/cache/state.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/feed/cache/state.go b/internal/feed/cache/state.go
index 1c911d7..3a40878 100644
--- a/internal/feed/cache/state.go
+++ b/internal/feed/cache/state.go
@@ -23,7 +23,7 @@ func (state *State) Foreach(f func(CachedFeed)) {
func (state *State) ForeachGo(goFunc func(CachedFeed)) {
var wg sync.WaitGroup
- wg.Add(len(state.feeds))
+ wg.Add(len(state.cachedFeeds))
f := func(feed CachedFeed, wg *sync.WaitGroup) {
goFunc(feed)