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

fix-maxBufSize-less-than-preferredBufSize #2109

Conversation

harrylaou
Copy link
Contributor

No description provided.

fix-maxBufSize-less-than-preferredBufSize scalafmt
@harrylaou harrylaou force-pushed the fix-maxBufSize-less-than-preferredBufSize branch from 294a72f to 2788962 Compare February 1, 2024 11:09
ReaderConfig
.withMaxBufSize(max(max(payload.length, ReaderConfig.maxBufSize), ReaderConfig.preferredBufSize))
.withMaxCharBufSize(
max(max(payload.length, ReaderConfig.maxCharBufSize), ReaderConfig.preferredCharBufSize)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this one just be max(payload.length, ReaderConfig.maxCharBufSize)? The ReaderConfig.preferredCharBufSize will always be smaller than ReaderConfig.maxCharBufSize.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same for above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course. I have updated the PR.

@ghostdogpr
Copy link
Owner

Thanks!

@ghostdogpr ghostdogpr merged commit 90f7b36 into ghostdogpr:series/2.x Feb 5, 2024
10 checks passed
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.

3 participants