Added a Remove() method to a DB instance.

This commit is contained in:
Alexander Andreev 2022-08-28 23:32:42 +04:00
parent 0b064e8977
commit 691659c2d0
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -29,6 +29,10 @@ func IsSolved(id captcha.ID) (bool, error) {
return captchaDb.IsSolved(id) return captchaDb.IsSolved(id)
} }
func Remove(id captcha.ID) error {
return captchaDb.Remove(id)
}
func GetExpiry() time.Duration { func GetExpiry() time.Duration {
return captchaDb.GetExpiry() return captchaDb.GetExpiry()
} }