Skip to content

Conversation

@cowlicks
Copy link
Member

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