From 3251b6862975988d979b8e08b660070d5b61e733 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 26 Jun 2022 20:53:48 +0400 Subject: [PATCH] In instance.go GetExpireInterval() changed to GetExpiry(). And changed name of corresponding field of CaptchaDB to ExpireIn. --- internal/captcha/instance.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }