From 691659c2d03ddf1c75d92f7ecf6af8cf0d62edda Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 28 Aug 2022 23:32:42 +0400 Subject: [PATCH] Added a Remove() method to a DB instance. --- internal/captcha/instance.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/captcha/instance.go b/internal/captcha/instance.go index b695b52..946a818 100644 --- a/internal/captcha/instance.go +++ b/internal/captcha/instance.go @@ -29,6 +29,10 @@ func IsSolved(id captcha.ID) (bool, error) { return captchaDb.IsSolved(id) } +func Remove(id captcha.ID) error { + return captchaDb.Remove(id) +} + func GetExpiry() time.Duration { return captchaDb.GetExpiry() }