Commit 34c6ab25 authored by Willem Thiart's avatar Willem Thiart
Browse files

Define raft_add_peer

parent c82269b3
...@@ -333,6 +333,8 @@ __attribute__ ((deprecated)); ...@@ -333,6 +333,8 @@ __attribute__ ((deprecated));
* @return 0 on success; otherwise -1 */ * @return 0 on success; otherwise -1 */
int raft_add_node(raft_server_t* me, void* user_data, int is_self); int raft_add_node(raft_server_t* me, void* user_data, int is_self);
#define raft_add_peer raft_add_node
/** Set election timeout. /** Set election timeout.
* The amount of time that needs to elapse before we assume the leader is down * The amount of time that needs to elapse before we assume the leader is down
* @param[in] msec Election timeout in milliseconds */ * @param[in] msec Election timeout in milliseconds */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment