Skip to content

Commit

Permalink
feat: Make amqp critical if configured
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Jul 14, 2022
1 parent a3c8c8b commit 73edc35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fibr/fibr.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func main() {

amqpClient, err := amqp.New(amqpConfig, prometheusApp.Registerer())
if err != nil && !errors.Is(err, amqp.ErrNoConfig) {
logger.Error("unable to create amqp client: %s", err)
logger.Fatal(err)
} else if amqpClient != nil {
defer amqpClient.Close()
}
Expand Down

0 comments on commit 73edc35

Please sign in to comment.