mirror of
https://github.com/PrivateCaptcha/PrivateCaptcha.git
synced 2026-02-11 16:29:00 -06:00
Fix code style issues (#208)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
committed by
GitHub
parent
4f21d6693b
commit
19acfe7c6e
@@ -266,7 +266,7 @@ func (v *Verifier) PuzzleForRequest(r *http.Request, levels *difficulty.Levels)
|
||||
uuid := db.UUIDFromSiteKey(sitekey)
|
||||
// NOTE: we potentially can include user fingerprint stats into the calculation of difficulty
|
||||
// but it's besides the point of "quickly returning smth valid from public endpoint"
|
||||
// (all valid properties should be more or less agressively cached all of the time anyways)
|
||||
// (all valid properties should be more or less aggressively cached all of the time anyways)
|
||||
stubPuzzle := v.Create(0 /*puzzle ID*/, uuid.Bytes, uint8(common.DifficultyLevelMedium))
|
||||
// if it's a legit request, then puzzle will be also legit (verifiable) with this PropertyID
|
||||
if err := stubPuzzle.Init(puzzle.DefaultValidityPeriod); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user