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

Allow to use both async-channel and futures channels via feature flags #48

Merged
merged 5 commits into from
Jul 18, 2023

Conversation

vstakhov
Copy link
Contributor

This PR addresses the compatibility issue: it is still impossible to use async-channel in Polkadot for some reasons. So far, we have no full understanding why does this happen but we want to be able to sync with the recent orchestra updates. With this change, it will be possible to select the concrete implementation of the underlying channels via features. Well, cargo features has proven to be a fragile and poor choice for it but it is complie time, so it has no cost on operations.

This PR is stacked with #47

@vstakhov vstakhov added the dependencies Pull requests that update a dependency file label Jun 28, 2023
Copy link
Collaborator

@drahnr drahnr left a comment

Choose a reason for hiding this comment

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

Not a big fan of introducing the feature flags, but given the circumstances fine by me.

vstakhov and others added 2 commits July 7, 2023 15:20
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>
@vstakhov vstakhov merged commit 137f739 into vstakhov-boxed-messages Jul 18, 2023
vstakhov added a commit that referenced this pull request Jul 18, 2023
#48)

* Allow to select between channels implementations

* Fix tests

* Add futures-channel tests in CI

* Fix check job

* feat: send signals in parallel (#51)

Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>

---------

Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>
vstakhov added a commit that referenced this pull request Jul 18, 2023
* Add benchmarks

* Move thread-pool feature to dev dependencies

* Allow to use both async-channel and futures channels via feature flags (#48)

* Allow to select between channels implementations

* Fix tests

* Add futures-channel tests in CI

* Fix check job

* feat: send signals in parallel (#51)

Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>

---------

Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>

* Fix merge issue

* Another version fix

---------

Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants