remove dead logic

This commit is contained in:
Andre Medeiros 2021-07-15 11:03:52 -04:00
parent 5ebac84014
commit a9a329967a

View file

@ -283,13 +283,6 @@ func (nc *notificationsConsumer) Consume(delivery rmq.Delivery) {
"count": len(tt),
}).Debug("fetched messages")
if len(tt) == 0 {
nc.logger.WithFields(logrus.Fields{
"accountID": id,
}).Debug("no new messages, bailing early")
return
}
// Set latest message we alerted on
latestMsg := tt[0]
if err = nc.db.BeginFunc(ctx, func(tx pgx.Tx) error {