mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-16 14:43:53 +00:00
refactor: tighten captcha poll loop and document solver funcs
This commit is contained in:
1 parent
006029aad1
commit
1bd58a02b7
2 files changed
+151
-20
No files matched your search
@@ -445,7 +445,13 @@ func (e ScriptUnknownEngineError) Error() string {
|
||||
|
||||
// ======================================== Captcha ========================================
|
||||
|
||||
var ErrCaptchaKeyEmpty = errors.New("captcha API key cannot be empty")
|
||||
var (
|
||||
ErrCaptchaKeyEmpty = errors.New("captcha API key cannot be empty")
|
||||
// ErrCaptchaProcessing is an internal sentinel returned by the captcha solver polling
|
||||
// code to signal that a task is not yet solved and polling should continue.
|
||||
// It should never be surfaced to callers outside of the captcha poll loop.
|
||||
ErrCaptchaProcessing = errors.New("captcha task still processing")
|
||||
)
|
||||
|
||||
type CaptchaAPIError struct {
|
||||
Endpoint string
|
||||
|
||||
Reference in new issue
Block a user