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

Changes for Replication #22

Merged
merged 9 commits into from
Oct 28, 2024
Merged

Changes for Replication #22

merged 9 commits into from
Oct 28, 2024

Conversation

cowlicks
Copy link
Contributor

The main things needed in this are;

  • Add derive(Clone) for Channel. In my replication code I get one Channel per peer pass it around a lot. Having it be Clone helps a lot, and the struct is pretty cheap to clone.
  • Custom Debug for Protocol. It just skips debugging the io field. This lets use things that are Non-Debug for io. Such as things from the piper crate.

The clone is cheap, and is useful for users.
This lets use streams that don't impl Debug.
Like those made with piper::Reader
I find this easier to tweak when developing
@ttiurani ttiurani merged commit 5c2982e into datrs:master Oct 28, 2024
4 checks passed
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.

2 participants