Not found error moved to db.go where it belongs.

This commit is contained in:
Alexander Andreev 2022-07-30 15:44:02 +04:00
parent 925d48c10d
commit d7a04516e3
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,6 @@ package captcha
import (
"crypto/rand"
"errors"
"image"
"math/big"
"time"
@ -12,8 +11,6 @@ const (
maxAnswer = 999999
)
var errorNotFound = errors.New("captcha not found")
type Answer string
// Captcha interface that should be implemented by captcha.

View File

@ -3,12 +3,15 @@ package captcha
import (
"crypto/sha256"
"encoding/base64"
"errors"
"image"
"strconv"
"sync"
"time"
)
var errorNotFound = errors.New("captcha not found")
var expiredScanInterval = 60 * time.Second
type ID string