Closed pav-kv closed 9 months ago
@ahrtr PTAL. This is a mechanical change, should be easy to review. See individual commits.
Please resolve all review comments (or just mark it as resolved if you want to keep it as it's for now) before I merge this PR. thx
@ahrtr Done. Can be merged, thank you.
This PR does a mechanical refactoring of
raft.maybeSendAppend
method. A newmaybeSendSnapshot
method is factored out for readability, and a couple of error conditions are optimized out. See individual commits.These are preparatory clean-ups for #130.