From 9658bbd755b329e30d4b617f0f674602df6c076f Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 26 Jun 2022 21:28:22 +0400 Subject: [PATCH] In db.go method GetExpiry() placed next to SetExpiry() method. --- internal/captcha/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {