From 3c6c185a5cb96d9ddd5ef232fc391e685ca682bd Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger Date: Mon, 30 Nov 2020 14:49:40 -0800 Subject: [PATCH] fixing lint checks Signed-off-by: Aaron Schlesinger --- pkg/scalers/azure_blob_scaler.go | 3 +-- pkg/scalers/azure_queue_scaler.go | 3 +-- pkg/scalers/azure_servicebus_scaler.go | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pkg/scalers/azure_blob_scaler.go b/pkg/scalers/azure_blob_scaler.go index 2dc75dd5e0f..d669c9398fb 100644 --- a/pkg/scalers/azure_blob_scaler.go +++ b/pkg/scalers/azure_blob_scaler.go @@ -7,7 +7,6 @@ import ( "strconv" "github.com/kedacore/keda/v2/pkg/scalers/azure" - "github.com/kedacore/keda/v2/pkg/util" v2beta2 "k8s.io/api/autoscaling/v2beta2" "k8s.io/apimachinery/pkg/api/resource" @@ -54,7 +53,7 @@ func NewAzureBlobScaler(config *ScalerConfig) (Scaler, error) { return &azureBlobScaler{ metadata: meta, podIdentity: podIdentity, - httpClient: util.CreateHTTPClient(config.GlobalHTTPTimeout), + httpClient: kedautil.CreateHTTPClient(config.GlobalHTTPTimeout), }, nil } diff --git a/pkg/scalers/azure_queue_scaler.go b/pkg/scalers/azure_queue_scaler.go index e2129b5b420..5bbc60f0751 100644 --- a/pkg/scalers/azure_queue_scaler.go +++ b/pkg/scalers/azure_queue_scaler.go @@ -7,7 +7,6 @@ import ( "strconv" "github.com/kedacore/keda/v2/pkg/scalers/azure" - "github.com/kedacore/keda/v2/pkg/util" v2beta2 "k8s.io/api/autoscaling/v2beta2" "k8s.io/apimachinery/pkg/api/resource" @@ -51,7 +50,7 @@ func NewAzureQueueScaler(config *ScalerConfig) (Scaler, error) { return &azureQueueScaler{ metadata: meta, podIdentity: podIdentity, - httpClient: util.CreateHTTPClient(config.GlobalHTTPTimeout), + httpClient: kedautil.CreateHTTPClient(config.GlobalHTTPTimeout), }, nil } diff --git a/pkg/scalers/azure_servicebus_scaler.go b/pkg/scalers/azure_servicebus_scaler.go index b7783e54d14..4e9c6fe0322 100755 --- a/pkg/scalers/azure_servicebus_scaler.go +++ b/pkg/scalers/azure_servicebus_scaler.go @@ -9,7 +9,6 @@ import ( "github.com/Azure/azure-amqp-common-go/v3/auth" servicebus "github.com/Azure/azure-service-bus-go" "github.com/kedacore/keda/v2/pkg/scalers/azure" - "github.com/kedacore/keda/v2/pkg/util" v2beta2 "k8s.io/api/autoscaling/v2beta2" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -59,7 +58,7 @@ func NewAzureServiceBusScaler(config *ScalerConfig) (Scaler, error) { return &azureServiceBusScaler{ metadata: meta, podIdentity: config.PodIdentity, - httpClient: util.CreateHTTPClient(config.GlobalHTTPTimeout), + httpClient: kedautil.CreateHTTPClient(config.GlobalHTTPTimeout), }, nil }