refactor: cut raft_main loop into pieces
This patch only shuffles code arond. It doesn't affect neither public API nor control flow.
The main purpose of this patch is to reduce indentation level and make raft_main_loop
more concise.
This patch only shuffles code arond. It doesn't affect neither public API nor control flow.
The main purpose of this patch is to reduce indentation level and make raft_main_loop
more concise.