Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fix request-response protocols backpressure mechanism #14199

Merged
merged 1 commit into from
May 24, 2023

Conversation

dmitry-markin
Copy link
Contributor

@dmitry-markin dmitry-markin commented May 23, 2023

Resolves #14138 by replacing futures::channel::mpsc::channel incoming request channel with async_channel::bounded, which doesn't have a limitation that every Sender clone allocates an extra queue slot.

polkadot companion: paritytech/polkadot#7276

@dmitry-markin dmitry-markin added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels May 23, 2023
@dmitry-markin dmitry-markin requested a review from a team May 23, 2023 14:04
@altonen altonen requested a review from a team May 24, 2023 07:21
Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍

@dmitry-markin
Copy link
Contributor Author

bot merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Backpressure for the request-response protocol doesn't work correctly
3 participants