Skip to content

Commit

Permalink
Removed unused constants
Browse files Browse the repository at this point in the history
Signed-off-by: Omer Aplatony <[email protected]>
  • Loading branch information
omerap12 committed Dec 22, 2024
1 parent 4934fd0 commit 9924ef1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 1 addition & 8 deletions pkg/scalers/liiklus_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,7 @@ type liiklusMetadata struct {
}

const (
defaultLiiklusLagThreshold int64 = 10
defaultLiiklusActivationLagThreshold int64 = 0
)

const (
liiklusLagThresholdMetricName = "lagThreshold"
liiklusActivationLagThresholdMetricName = "activationLagThreshold"
liiklusMetricType = "External"
liiklusMetricType = "External"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions pkg/scalers/liiklus_scaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -77,7 +77,7 @@ var parseLiiklusMetadataTestDataset = []parseLiiklusMetadataTestData{
ExpectedErr: nil,
ExpectedMetatada: &liiklusMetadata{
LagThreshold: 20,
ActivationLagThreshold: defaultLiiklusActivationLagThreshold,
ActivationLagThreshold: 0,
Address: "using-mock",
Topic: "foo",
Group: "mygroup",
Expand Down

0 comments on commit 9924ef1

Please sign in to comment.