Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: raihankhan <[email protected]>
  • Loading branch information
raihankhan committed Aug 29, 2024
1 parent ef95b88 commit 7ac8322
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rabbitmq/kubedb_client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ package rabbitmq
import (
"context"
"errors"
amqp "github.com/rabbitmq/amqp091-go"

"fmt"
"strings"

rmqhttp "github.com/michaelklishin/rabbit-hole/v2"
amqp "github.com/rabbitmq/amqp091-go"
core "k8s.io/api/core/v1"
kerr "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -144,6 +143,10 @@ func (o *KubeDBClientBuilder) GetRabbitMQClient() (*Client, error) {
}

vhosts, err := httpClient.ListVhosts()
if err != nil {
klog.Error(err, "Failed to list virtual hosts")
return nil, err
}
for _, vhost := range vhosts {
if vhost.Description == "Default virtual host" {
defaultVhost = vhost.Name
Expand Down

0 comments on commit 7ac8322

Please sign in to comment.