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

refactor(noise): implement tests using futures_ringbuf #3773

Merged
merged 13 commits into from
May 2, 2023

Conversation

thomaseizinger
Copy link
Contributor

Description

Instead of creating a connection via a TCP transport, we can use the futures_ringbuf crate and run the noise encryption on an in-memory transport. This removes the dependency on the libp2p_core::upgrade::apply function and takes less code to implement.

Related #3748.

Notes & 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

@thomaseizinger thomaseizinger marked this pull request as draft April 11, 2023 21:37
@thomaseizinger
Copy link
Contributor Author

Draft because it is a staked PR.

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.

Direction looks good to me.

Base automatically changed from feat/deprecate-noise to master April 28, 2023 13:50
@thomaseizinger thomaseizinger marked this pull request as ready for review April 28, 2023 13:56
@mergify

This comment was marked as resolved.

@thomaseizinger thomaseizinger added send-it trivial Marks PRs which are considered trivial and don't need approval from another maintainer. labels May 2, 2023
@mergify mergify bot merged commit 4ca8885 into master May 2, 2023
@mergify mergify bot deleted the refactor/noise-remove-uprade-apply branch May 2, 2023 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
send-it trivial Marks PRs which are considered trivial and don't need approval from another maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants