Browse Source

Typo in a test

michaelkaye/respect_rate_limits
Michael Kaye 4 years ago
parent
commit
37d6cffab1
  1. 5
      services/rssbot/rssbot.go

5
services/rssbot/rssbot.go

@ -418,10 +418,9 @@ func (s *Service) sendToRooms(cli types.MatrixClient, feedURL string, feed *gofe
logger.Info("Sending new feed item")
for _, roomID := range s.Feeds[feedURL].Rooms {
if _, err := cli.SendMessageEvent(roomID, mevt.EventMessage, itemToHTML(feed, item)); err != nil {
if err.code = 429 {
if err.code == 429 {
return err
}
else {
} else {
logger.WithError(err).WithField("room_id", roomID).Error("Failed to send to room")
}
}

Loading…
Cancel
Save