upsight / dinghy

Dinghy implements leader election using the raft protocol
MIT License
15 stars 4 forks source link

Adds more control over OnLeader/OnFollower state changes and resolves #6 #7

Closed pkar closed 6 years ago

pkar commented 6 years ago

Previously if the OnLeader or OnFollower funcs passed in returned an error it was just logged and expected to be handled outside the library.

This PR changes that behavior by returning error from Start.