Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update connection.ts, maxRetries no longer strips #26345

Merged
merged 1 commit into from Jul 1, 2022
Merged

Update connection.ts, maxRetries no longer strips #26345

merged 1 commit into from Jul 1, 2022

Conversation

Mark-777-0
Copy link
Contributor

Problem

maxRetries was stripping when it was set to 0.

Summary of Changes

I followed steveluscher's proposition and set the AND statement to check for null and not falsey. The commit makes the maxRetries in parallel structure with the minContextSlot IF statement below it!

Fixes #26295

@mergify mergify bot added the community Community contribution label Jul 1, 2022
@mergify mergify bot requested a review from a team July 1, 2022 00:49
Copy link
Contributor

@steveluscher steveluscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s the one! Thank you :)

@steveluscher steveluscher merged commit 3fcdc45 into solana-labs:master Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

web3.js: When maxRetries is set to zero, it's stripped out
2 participants