goraft / raft

UNMAINTAINED: A Go implementation of the Raft distributed consensus protocol.
MIT License
2.43k stars 480 forks source link

Dispatch commit event. #178

Closed benbjohnson closed 10 years ago

benbjohnson commented 10 years ago

This pull request makes two changes:

  1. Dispatches the CommitEventType event on each commit.
  2. Makes LogEntry.encode() and LogEntry.decode() into exported functions (Encode()/Decode()).
philips commented 10 years ago

lgtm ;)