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

Accumulate chunks until min size (1Mb) is reached #332

Closed
wants to merge 6 commits into from

Conversation

kramarmm
Copy link

Closes: #326

  • code is properly formatted (npm run fmt)

dist/streams.js Outdated
byteView.set(metadata);
byteView.set(payload, metadata.length);
return byteView;
return this.merge(metadata, payload);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return this.merge(metadata, payload);
return MetacomChunk.merge(metadata, payload);

dist/streams.js Outdated Show resolved Hide resolved
dist/streams.js Outdated Show resolved Hide resolved
@tshemsedinov tshemsedinov changed the title accumulate chunks until min size (1Mb) is reached Accumulate chunks until min size (1Mb) is reached Jul 21, 2022
@kramarmm
Copy link
Author

@tshemsedinov I've applied proposed suggestions.
Could you take a look again?

@tshemsedinov tshemsedinov requested a review from rohiievych July 23, 2022 07:05
@tshemsedinov tshemsedinov changed the base branch from streams to master July 23, 2022 07:42
@tshemsedinov
Copy link
Member

tshemsedinov commented Jul 23, 2022

To sync this fork with metacom/master please drop first 4 commits and rebase on metacom/master @kramarmm

@rohiievych
Copy link
Member

Closing in favor of extended version: #336
Proceed with the new PR for extended issue.

@rohiievych rohiievych closed this Jul 23, 2022
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.

Implement packet batching
4 participants