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

swarm-derive: Allow for templated behaviours #2907

Merged
merged 6 commits into from Sep 16, 2022
Merged

Conversation

thomaseizinger
Copy link
Contributor

Description

This patch fixes an issue where we couldn't use type parameters on a behaviour with a custom out event that had different type parameters.

Links to any relevant issues

Fixes #2879.

Open Questions

Change checklist

  • I have performed a self-review of my own code
    - [ ] I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Thanks for debugging and patching @thomaseizinger. Thanks @dmitry-markin for confirming.

@dmitry-markin let me know in case you need this released rather sooner than later.

@mxinden
Copy link
Member

mxinden commented Sep 16, 2022

Testground failures are due to libp2p/test-plans#41. Merging here.

@mxinden mxinden merged commit 2025de3 into master Sep 16, 2022
@dmitry-markin
Copy link
Contributor

dmitry-markin commented Sep 16, 2022

@dmitry-markin let me know in case you need this released rather sooner than later.

@mxinden it would be great to have this released to merge paritytech/substrate#12256 and be able to finally use #2846. But this is not super-urgent.

@thomaseizinger thomaseizinger deleted the 2879-bad-derive branch September 19, 2022 06:10
@mxinden
Copy link
Member

mxinden commented Sep 22, 2022

@dmitry-markin you can follow the progress on the next release here: #2931

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.

#[derive(NetworkBehaviour)] fails on structs with generics
3 participants