diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-26 17:44:20 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-26 17:44:20 +0200 |
commit | 9e69c102b596924d589693ce537c4fecae3aa44c (patch) | |
tree | bc43276b03f1f92da51e41b48ebe5fa5adb437c7 /internal/feed/parse.go | |
parent | 835d5f3547f10ede1997a938d9278a506a089bb7 (diff) | |
download | feed2imap-go-9e69c102b596924d589693ce537c4fecae3aa44c.tar.gz feed2imap-go-9e69c102b596924d589693ce537c4fecae3aa44c.tar.bz2 feed2imap-go-9e69c102b596924d589693ce537c4fecae3aa44c.zip |
Handle the waitGroup internally in ForeachGo
Diffstat (limited to 'internal/feed/parse.go')
-rw-r--r-- | internal/feed/parse.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/feed/parse.go b/internal/feed/parse.go index d7b20ad..c027bd3 100644 --- a/internal/feed/parse.go +++ b/internal/feed/parse.go @@ -3,7 +3,6 @@ package feed import ( ctxt "context" "fmt" - "sync" "time" "github.com/mmcdole/gofeed" @@ -32,8 +31,7 @@ func parseFeed(feed *Feed) error { return nil } -func handleFeed(feed *Feed, group *sync.WaitGroup) { - defer group.Done() +func handleFeed(feed *Feed) { log.Printf("Fetching %s from %s", feed.Name, feed.Url) err := parseFeed(feed) |