Hoverbear / old-raft-rs

[Incomplete] A Raft implementation in Rust
https://hoverbear.github.io/raft-rs/raft/
MIT License
266 stars 41 forks source link

introduce message wrapper, cleanup client #29

Closed danburkert closed 9 years ago

danburkert commented 9 years ago

This commit introduces a wrapper message type, Message, which all messages sent between Raft clients and servers should use to wrap the message type. Additionally, the client has been reduced to just the append method. Leader refresh was removed because it's impossible to provide correctly, and die was removed because its uneeded right now, and in the long run shutdown should probably be provided by the server objects, not the rpc system.

Hoverbear commented 9 years ago

+1, looks great. I like this change quite a bit, it's much more straightforward. I also like EmitType.