Skip to content

Commit 7952e92

Browse files
committed
Satisfy lint by naming retry threshold
1 parent 3e170e4 commit 7952e92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/authz/server/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const (
4949
serviceNameOPA = "opa"
5050
serviceNameMFA = "mfa"
5151
serviceNameInventory = "inventory"
52+
minRetryAttempts = 0
5253
statusError = "error"
5354
statusInvalid = "invalid"
5455
zeroTrustScore = 0
@@ -144,7 +145,7 @@ func New(cfg Config) (*Server, error) {
144145
Multiplier: defaultRetryMultiplier,
145146
MaxInterval: defaultMaxInterval,
146147
}
147-
if cfg.RetryMaxAttempts > 0 {
148+
if cfg.RetryMaxAttempts > minRetryAttempts {
148149
retryCfg.MaxAttempts = cfg.RetryMaxAttempts
149150
}
150151

0 commit comments

Comments
 (0)