Skip to content

Commit

Permalink
disable empty-block revive rule in rabbitmq check (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmdrs authored May 17, 2023
1 parent 19b67d6 commit 696950e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checks/rabbitmq/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ func New(config Config) func(ctx context.Context) error {
// release the channel resources, and unblock the receive on done below
close(done)

// now drain any incidental remaining messages
//revive:disable:empty-block Draining any incidental remaining messages
for range messages {
}
//revive:enable:empty-block
}()

p := amqp.Publishing{Body: []byte(time.Now().Format(time.RFC3339Nano))}
Expand Down

0 comments on commit 696950e

Please sign in to comment.