modules/rss.go: dont disclose errors to channels
continuous-integration/drone/push Build is passing Details

This commit is contained in:
an 2019-08-14 00:05:32 +02:00
parent 09056f842e
commit e1211a9f41
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func rssPollFeed(uri string, timeout int, cr xmlx.CharsetFunc) {
xlog.Info("Polling feed: %s", uri)
if err := feed.Fetch(uri, cr); err != nil {
xlog.Info("[e] %s: %s", "*", uri, err)
SayCh <- fmt.Sprintf("%s\n[RSS] Error %s: %s", *rssChannel, uri, err)
//SayCh <- fmt.Sprintf("%s\n[RSS] Error %s: %s", *rssChannel, uri, err)
return
}
<-time.After(time.Duration(feed.SecondsTillUpdate() * 1e9))