From 9924ef17e97ec4198e21c1cad008535930c642ed Mon Sep 17 00:00:00 2001 From: Omer Aplatony Date: Sun, 22 Dec 2024 19:55:42 +0200 Subject: [PATCH] Removed unused constants Signed-off-by: Omer Aplatony --- pkg/scalers/liiklus_scaler.go | 9 +-------- pkg/scalers/liiklus_scaler_test.go | 6 +++--- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/pkg/scalers/liiklus_scaler.go b/pkg/scalers/liiklus_scaler.go index 1f78ce154a8..3b623d35af9 100644 --- a/pkg/scalers/liiklus_scaler.go +++ b/pkg/scalers/liiklus_scaler.go @@ -36,14 +36,7 @@ type liiklusMetadata struct { } const ( - defaultLiiklusLagThreshold int64 = 10 - defaultLiiklusActivationLagThreshold int64 = 0 -) - -const ( - liiklusLagThresholdMetricName = "lagThreshold" - liiklusActivationLagThresholdMetricName = "activationLagThreshold" - liiklusMetricType = "External" + liiklusMetricType = "External" ) var ( diff --git a/pkg/scalers/liiklus_scaler_test.go b/pkg/scalers/liiklus_scaler_test.go index 2f22bba9abc..dc4022dcd6f 100644 --- a/pkg/scalers/liiklus_scaler_test.go +++ b/pkg/scalers/liiklus_scaler_test.go @@ -56,8 +56,8 @@ var parseLiiklusMetadataTestDataset = []parseLiiklusMetadataTestData{ metadata: map[string]string{"topic": "foo", "address": "using-mock", "group": "mygroup"}, ExpectedErr: nil, ExpectedMetatada: &liiklusMetadata{ - LagThreshold: defaultLiiklusLagThreshold, - ActivationLagThreshold: defaultLiiklusActivationLagThreshold, + LagThreshold: 10, + ActivationLagThreshold: 0, Address: "using-mock", Topic: "foo", Group: "mygroup", @@ -77,7 +77,7 @@ var parseLiiklusMetadataTestDataset = []parseLiiklusMetadataTestData{ ExpectedErr: nil, ExpectedMetatada: &liiklusMetadata{ LagThreshold: 20, - ActivationLagThreshold: defaultLiiklusActivationLagThreshold, + ActivationLagThreshold: 0, Address: "using-mock", Topic: "foo", Group: "mygroup",