mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 21:27:42 +00:00
remove dead logic
This commit is contained in:
parent
5ebac84014
commit
a9a329967a
1 changed files with 0 additions and 7 deletions
|
@ -283,13 +283,6 @@ func (nc *notificationsConsumer) Consume(delivery rmq.Delivery) {
|
||||||
"count": len(tt),
|
"count": len(tt),
|
||||||
}).Debug("fetched messages")
|
}).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
|
// Set latest message we alerted on
|
||||||
latestMsg := tt[0]
|
latestMsg := tt[0]
|
||||||
if err = nc.db.BeginFunc(ctx, func(tx pgx.Tx) error {
|
if err = nc.db.BeginFunc(ctx, func(tx pgx.Tx) error {
|
||||||
|
|
Loading…
Reference in a new issue