From 21e5ec118e8951e5a4aa97edef763a1db47b4e7c Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 27 Jun 2022 03:19:39 +0400 Subject: [PATCH] Added comment for CaptchaDB.GetExpiry(). --- pkg/captcha/db.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/captcha/db.go b/pkg/captcha/db.go index 917afef..5095242 100644 --- a/pkg/captcha/db.go +++ b/pkg/captcha/db.go @@ -115,6 +115,7 @@ func (cdb *CaptchaDB) IsSolved(id ID) (bool, error) { return false, errorNotFound } +// GetExpiry returns time for how long captcha will last. func (cdb *CaptchaDB) GetExpiry() time.Duration { return cdb.ExpireIn }