-
Notifications
You must be signed in to change notification settings - Fork 332
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
feat: [MR-636] Add size limits as fields to the stream builder #3885
base: master
Are you sure you want to change the base?
Conversation
…_to_stream_builder
I don't see the need for a test here, since there already are tests for different limits for the stream builder and I didn't change any of the behaviour, it's just that now internal fields are used rather than the constants directly, but these fields are initialized using the same constants from before. Only for |
…ity/ic into add_stream_limits_to_stream_builder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The driver behind this change is to make smaller streams possible in state machine tests and also unit or prop tests. But for state machine tests especially, having to fill up an entire stream with 10k filler requests just to test something at capacity takes a long time.
Since this change makes the stream limit constants public, removing the duplicate MAX_STREAM_MESSAGES in the payload builder as a small additional change makes sense here (even though it's not strictly related).