From 28ceae169ba2105a8f716e74c76934eab55f9fde Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 27 Jun 2022 00:26:03 +0400 Subject: [PATCH] ID type moved to db.go file where it belongs. --- pkg/captcha/captcha.go | 1 - pkg/captcha/db.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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 {