From 8b871f99ceefea089057d9edf797a0a03a4e8c0d Mon Sep 17 00:00:00 2001 From: gmolinas <90208075+gmolinas@users.noreply.github.com> Date: Mon, 19 Jun 2023 06:00:21 -0300 Subject: [PATCH] Remove unused function (#93) Co-authored-by: Lucas Medeiros --- checks/rabbitmq/check.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/checks/rabbitmq/check.go b/checks/rabbitmq/check.go index c7b6a04..135da55 100644 --- a/checks/rabbitmq/check.go +++ b/checks/rabbitmq/check.go @@ -105,11 +105,6 @@ func New(config Config) func(ctx context.Context) error { // release the channel resources, and unblock the receive on done below close(done) - - //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))}