Skip to content

Commit

Permalink
chore: disable mq health check
Browse files Browse the repository at this point in the history
Signed-off-by: Firas Qutishat <firas.qutishat@securekey.com>
  • Loading branch information
fqutishat committed Jun 16, 2022
1 parent 2fd4f69 commit af662a4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pkg/pubsub/amqp/amqppubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,15 @@ func (p *PubSub) Subscribe(ctx context.Context, topic string) (<-chan *message.M

// IsConnected return error if not connected.
func (p *PubSub) IsConnected() error {
connMgr, err := p.connMgr.getConnection(false)
if err != nil {
return err
}

if !connMgr.amqpConnection().IsConnected() {
return fmt.Errorf("mq not connected")
}
// TODO find way to check if mq is down
// connMgr, err := p.connMgr.getConnection(false)
// if err != nil {
// return err
// }
//
// if !connMgr.amqpConnection().IsConnected() {
// return fmt.Errorf("mq not connected")
// }

return nil
}
Expand Down

0 comments on commit af662a4

Please sign in to comment.