diff --git a/internal/captcha/db.go b/internal/captcha/db.go index b1f7f4a..a246ada 100644 --- a/internal/captcha/db.go +++ b/internal/captcha/db.go @@ -14,10 +14,10 @@ var expiredScanInterval = 60 * time.Second type ICaptchaDB interface { New(data string) (ICaptcha, ID) SetExpiry(expiry time.Duration) + GetExpiry() time.Duration Image(id ID) (*image.Image, error) Solve(id ID, answer Answer) (bool, error) IsSolved(id ID) bool - GetExpiry() time.Duration } type CaptchaDB struct {