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

Batch fetching in GasUpdater #4243

Merged
merged 1 commit into from
Apr 20, 2021
Merged

Batch fetching in GasUpdater #4243

merged 1 commit into from
Apr 20, 2021

Conversation

samsondav
Copy link
Collaborator

No description provided.

@github-actions
Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

PiotrTrzpil
PiotrTrzpil previously approved these changes Apr 19, 2021
@@ -225,6 +225,9 @@ func (ec *ethConfirmer) CheckForReceipts(ctx context.Context, blockNum int64) er
if len(attempts) == 0 {
return nil
}
if batchSize == 0 {
batchSize = len(attempts)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

is this mainly for tests? when do we expect it to be 0 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's just to protect ourselves in case someone sets it. If we don't special case 0, it will cause the application to enter an infinite loop.

Usually 0 means "disable" so that's what I added here

Copy link
Contributor

Choose a reason for hiding this comment

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

ok 👍🏼

@samsondav samsondav merged commit 30f3e19 into develop Apr 20, 2021
@samsondav samsondav deleted the bug/ch7190 branch April 20, 2021 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants