We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Clone
Raft
#[derive(Clone)]
#[derive(Clone)] puts Clone bounds on each type parameter. So, currently Raft only implements Clone if Network and Storage implement Clone.
Network
Storage
However, Raft uses Arc under the hood for all of its dependencies, so we should be able to impl Clone regardless.
Arc
Maybe it's been done by design as a future proofing, but my speculation is that it's just a small oversight.
The text was updated successfully, but these errors were encountered:
👋 Thanks for opening this issue!
Get help or engage by:
/help
/assignme
Sorry, something went wrong.
Nice point! Let me fix it!
Thank you!
Improve: impl Clone for Raft does not require Clone for its type para…
8dae9ac
…meters Thanks to [xDarksome](https://github.com/xDarksome) - Fix: databendlabs#870
drmingdrmer
Successfully merging a pull request may close this issue.
#[derive(Clone)]
putsClone
bounds on each type parameter.So, currently
Raft
only implementsClone
ifNetwork
andStorage
implementClone
.However,
Raft
usesArc
under the hood for all of its dependencies, so we should be able to implClone
regardless.Maybe it's been done by design as a future proofing, but my speculation is that it's just a small oversight.
The text was updated successfully, but these errors were encountered: