-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit index implemented #9
Conversation
else currentState | ||
|
||
-- | Handles `AppendEntriesResponse'. | ||
handleAppendEntriesResponse :: (Functor m, Monad m) | ||
handleAppendEntriesResponse :: (Functor m, Monad m, MonadLog m a) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm most likely missing something obvious, but where is this constraint used?
Thanks for going through this. While going through the changes I had one minor question, if you could tell me what I'm missing, this otherwise looks good to me. |
@@ -54,7 +54,9 @@ handle config state event = case state of | |||
|
|||
-- | Initial state of all nodes. | |||
initialState :: SomeState | |||
initialState = wrap FollowerState {_fCurrentTerm = term0, _fVotedFor = Nothing} | |||
initialState = wrap FollowerState {_fCurrentTerm = term0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this might be missed from my change, but I think there could be a space before _fCurrentTerm, similarly in later change the } is aligned with the commas...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
@NicolasT I have made a fix commit if you did not get a notification - please review |
Implement commit-index propagation
Thanks! |
This should resolve #7