Skip to content

Commit c19604e

Browse files
committed
docs: correct stale MaxRetries field comment on CloudflareRetriever
The struct field comment still said "defaults to 3, set to -1 to disable", but the default substitution was removed in the Cloudflare routing PR — zero value now means no retries and the production default (2) is wired via the exported CFDefaultMaxRetries constant.
1 parent d512f1e commit c19604e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extractor/retriever.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ type CloudflareRetriever struct {
108108
APIToken string
109109
BaseURL string // override for testing; defaults to Cloudflare API
110110
Timeout time.Duration // per-request HTTP client timeout; defaults to 60s
111-
MaxRetries int // number of retries on 429; defaults to 3. set to -1 to disable retries
111+
MaxRetries int // number of retries on 429; 0 means no retries. use CFDefaultMaxRetries (2) for sensible production default
112112
RetryDelay time.Duration // base delay between 429 retries; defaults to 11s (CF free tier is 1 req/10s)
113113

114114
once sync.Once

0 commit comments

Comments
 (0)