Skip to content

Commit 4dd2f6d

Browse files
committed
Adds warning message for max attempt limit set to 0
1 parent 4dcd3cc commit 4dd2f6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/config/challenge.go

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ func (config *ChallengeMetadata) ValidateRequiredFields() (error, bool) {
162162
return fmt.Errorf("fail solve limit must be greater than equal to 0"), false
163163
} else if config.MaxAttemptLimit == 0 {
164164
// sets default value to -1 so it means that there is no limit.
165+
log.Warn("MaxAttemptLimit is set to 0, defaulting to no limit for attempts")
165166
config.MaxAttemptLimit = -1
166167
}
167168

0 commit comments

Comments
 (0)