feat: adjust rate limits for tariffs in Yandex Market API

This commit is contained in:
2025-08-19 15:26:06 +03:00
parent b4e55197be
commit 434b53361b
2 changed files with 2 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ import (
const (
defaultChunkSize = 200
offerMappingsRateLimit = 600
tariffsRateLimit = 100
tariffsRateLimit = 95
rateLimitWindow = time.Minute
maxPageSize = math.MaxInt32
)
@@ -242,7 +242,6 @@ func (r *apiRepository) CalculateProductTariffs(ctx context.Context, marketplace
}
if globalError != nil {
fmt.Printf("Error processing chunk %d: %s\n", chunkIndex+1, err)
errChan <- fmt.Errorf("failed to process chunk %d: %w", chunkIndex+1, err)
}
}
}