diff --git a/internal/captcha/instance.go b/internal/captcha/instance.go index ce5d56d..8315a13 100644 --- a/internal/captcha/instance.go +++ b/internal/captcha/instance.go @@ -8,8 +8,8 @@ import ( var captchaDb CaptchaDB = CaptchaDB{ DB: make(map[ID]ICaptcha)} -func Init(expiration time.Duration) { - captchaDb.SetExpiration(expiration) +func Init(expiry time.Duration) { + captchaDb.SetExpiry(expiry) } func New(data string, captcha ICaptcha) (ICaptcha, ID) { @@ -28,6 +28,6 @@ func IsSolved(id ID) (bool, error) { return captchaDb.IsSolved(id) } -func GetExpireInterval() time.Duration { - return captchaDb.ExpireInterval +func GetExpiry() time.Duration { + return captchaDb.ExpireIn }