Skip to content

Commit

Permalink
var 'client' collides with imported package name
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunyiLyu committed Mar 9, 2021
1 parent cf023ac commit 017522f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ func rabbitholeClient(ctx context.Context, c client.Client, rmq v1alpha1.Rabbitm
return nil, errors.New("failed to retrieve username: key password missing from secret")
}

client, err := rabbithole.NewClient(endpoint, string(defaultUser), string(defaultUserPass))
rabbitholeClient, err := rabbithole.NewClient(endpoint, string(defaultUser), string(defaultUserPass))
if err != nil {
return nil, fmt.Errorf("failed to instantiate rabbit client: %v", err)
return nil, fmt.Errorf("failed to instantiate rabbit rabbitholeClient: %v", err)
}

return client, nil
return rabbitholeClient, nil
}

// returns RabbitMQ management port from given service
Expand Down

0 comments on commit 017522f

Please sign in to comment.