Skip to content

Commit

Permalink
Adds warning message for max attempt limit set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryan51203 committed Feb 5, 2025
1 parent 4dcd3cc commit 4dd2f6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/config/challenge.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func (config *ChallengeMetadata) ValidateRequiredFields() (error, bool) {
return fmt.Errorf("fail solve limit must be greater than equal to 0"), false
} else if config.MaxAttemptLimit == 0 {
// sets default value to -1 so it means that there is no limit.
log.Warn("MaxAttemptLimit is set to 0, defaulting to no limit for attempts")
config.MaxAttemptLimit = -1
}

Expand Down

0 comments on commit 4dd2f6d

Please sign in to comment.