From 7a7c3107d8e28bd64f7ecbd8f8472c272d30773f Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 26 Jun 2022 15:46:23 +0400 Subject: [PATCH] Added GetExpireInterval() wrapper for CaptchaDB instance. --- internal/captcha/instance.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/captcha/instance.go b/internal/captcha/instance.go index 934b8c5..ce5d56d 100644 --- a/internal/captcha/instance.go +++ b/internal/captcha/instance.go @@ -27,3 +27,7 @@ func Solve(id ID, answer Answer) (bool, error) { func IsSolved(id ID) (bool, error) { return captchaDb.IsSolved(id) } + +func GetExpireInterval() time.Duration { + return captchaDb.ExpireInterval +}