diff --git a/pkg/captcha/captcha.go b/pkg/captcha/captcha.go index 476dcdc..2b12b45 100644 --- a/pkg/captcha/captcha.go +++ b/pkg/captcha/captcha.go @@ -14,7 +14,6 @@ const ( var errorNotFound = errors.New("captcha not found") -type ID string type Answer string type ICaptcha interface { diff --git a/pkg/captcha/db.go b/pkg/captcha/db.go index be7d315..758125e 100644 --- a/pkg/captcha/db.go +++ b/pkg/captcha/db.go @@ -9,6 +9,8 @@ import ( "time" ) +type ID string + var expiredScanInterval = 60 * time.Second type ICaptchaDB interface {