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(swarm)!: make on_connection_handler_event impl mandatory. #3364

Merged

Conversation

jxs
Copy link
Member

@jxs jxs commented Jan 20, 2023

Description

Sorry I missed this on #3264

Notes

Links to any relevant issues

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
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Can you expand the changelog entry of #3264 to say that this is now mandatory?

@jxs
Copy link
Member Author

jxs commented Jan 23, 2023

Can you expand the changelog entry of #3264 to say that this is now mandatory?

Yeah makes sense, updated!

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.

One wording suggestion. Otherwise looks good to me.

Comment on lines +12 to +13
Make the implementation of `on_swarm_event` and `on_connection_handler_event`
both mandatory. See [PR 3264] and [PR 3364].
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
Make the implementation of `on_swarm_event` and `on_connection_handler_event`
both mandatory. See [PR 3264] and [PR 3364].
Make the implementation of `on_connection_handler_event`
mandatory and thus consistent with `on_swarm_event`. See [PR 3264] and [PR 3364].

I find the wording hard to understand, i.e. I would expect this change to touch both methods, whereas in reality it doesn't.

Copy link
Member Author

Choose a reason for hiding this comment

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

sorry for the confusion introduced Max. It does, it's just that for on_connection_handler_event it was left out on #3264. Does the CHANGELOG entry make more sense to you, or do you still want me to adress it?

Copy link
Member

Choose a reason for hiding this comment

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

Ah, right, my bad. Thanks for clarifying.

Comment on lines +12 to +13
Make the implementation of `on_swarm_event` and `on_connection_handler_event`
both mandatory. See [PR 3264] and [PR 3364].
Copy link
Member

Choose a reason for hiding this comment

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

Ah, right, my bad. Thanks for clarifying.

@mergify
Copy link
Contributor

mergify bot commented Jan 23, 2023

This pull request has merge conflicts. Could you please resolve them @jxs? 🙏

@mergify mergify bot merged commit d7ee0e4 into libp2p:master Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants