change max attempt from 3 to 6

This commit is contained in:
Sarto
2026-03-26 18:56:56 +03:30
parent 19fd5fba30
commit 266d8faf2d
+1 -1
View File
@@ -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 {