Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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