From a9a329967abd7516c49c55eb0696b8a107c9e274 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 15 Jul 2021 11:03:52 -0400 Subject: [PATCH] remove dead logic --- internal/worker/notifications.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index df0ab98..055fec3 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -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 {