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

Genesis alloc utility: increase buffer size for streaming output/errors #551

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

vdamle
Copy link
Contributor

@vdamle vdamle commented Sep 5, 2024

default scan buffer size in bufio is 64k, which limits the max size of any token that can be scanned. Since diffs for the genesis alloc tool has to process large hex strings, we supply a larger buffer to ensure that output/errors are piped in its entirety.

default scan buffer size in bufio is 64k, which limits the max size of any token
that can be scanned. Since diffs for the genesis alloc tool has to process large hex strings,
we supply a larger buffer to ensure that output/errors are piped in its entirety.
@vdamle vdamle requested a review from geoknee September 5, 2024 20:00
@vdamle vdamle requested a review from a team as a code owner September 5, 2024 20:00
@vdamle vdamle merged commit da991d9 into main Sep 5, 2024
13 checks passed
@vdamle vdamle deleted the vd/validation-util-large-buf branch September 5, 2024 20:08
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