mirror of
https://github.com/sartoopjj/thefeed.git
synced 2026-05-18 06:44:34 +03:00
change max attempt from 3 to 6
This commit is contained in:
@@ -245,7 +245,7 @@ func (f *Fetcher) rateWait(ctx context.Context) error {
|
||||
// It enqueues through the rate limiter and respects ctx cancellation.
|
||||
// On transient failure it retries up to 2 additional times with a short back-off.
|
||||
func (f *Fetcher) FetchBlock(ctx context.Context, channel, block uint16) ([]byte, error) {
|
||||
const maxAttempts = 3
|
||||
const maxAttempts = 6
|
||||
var lastErr error
|
||||
for attempt := 0; attempt < maxAttempts; attempt++ {
|
||||
if attempt > 0 {
|
||||
|
||||
Reference in New Issue
Block a user