Added GetExpireInterval() wrapper for CaptchaDB instance.

This commit is contained in:
Alexander Andreev 2022-06-26 15:46:23 +04:00
parent 4af8d67299
commit 7a7c3107d8
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -27,3 +27,7 @@ func Solve(id ID, answer Answer) (bool, error) {
func IsSolved(id ID) (bool, error) { func IsSolved(id ID) (bool, error) {
return captchaDb.IsSolved(id) return captchaDb.IsSolved(id)
} }
func GetExpireInterval() time.Duration {
return captchaDb.ExpireInterval
}