Skip to content

Commit

Permalink
chore:removed erl keys from validation as we have defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
pubalokta committed Jun 21, 2024
1 parent 7b5f419 commit c8f1521
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ function validateERLParams(params) {
return new LimitdRedisValidationError('elevated_limits object is required for elevated limits', { code: 107 });
}

// redis' way of knowing whether erl is active or not
if (typeof params.erl_is_active_key !== 'string') {
return new LimitdRedisValidationError('erl_is_active_key is required for elevated limits', { code: 108 });
}

if (typeof params.erl_quota_key !== 'string') {
return new LimitdRedisValidationError('erl_quota_key is required for elevated limits', { code: 110 });
}

if (typeof params.erl_activation_period_seconds !== 'number') {
return new LimitdRedisValidationError('erl_activation_period_seconds is required for elevated limits', { code: 111 });
}
Expand Down

0 comments on commit c8f1521

Please # to comment.