Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: SpiritZhou <[email protected]>
  • Loading branch information
SpiritZhou committed Aug 19, 2024
1 parent c73441c commit 3afc165
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/scalers/redis_streams_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ const (
)

const (
// defaults
defaultDBIndex = 0
defaultTargetEntries = 5
defaultTargetLag = 5
defaultActivationLagCount = 0

// metadata names
lagMetadata = "lagCount"
pendingEntriesCountMetadata = "pendingEntriesCount"
Expand Down Expand Up @@ -76,9 +70,8 @@ func (r *redisStreamsMetadata) Validate() error {
err = r.ConnectionInfo.SetEnableTLS(r.MetadataEnableTLS, r.AuthParamEnableTLS)
if err != nil {
return err
} else {
r.MetadataEnableTLS, r.AuthParamEnableTLS = "", ""
}
r.MetadataEnableTLS, r.AuthParamEnableTLS = "", ""

if r.StreamName == "" {
return ErrRedisMissingStreamName
Expand Down

0 comments on commit 3afc165

Please sign in to comment.