modules/rss.go: dont disclose errors to channels
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
09056f842e
commit
e1211a9f41
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue