Skip to content

Commit

Permalink
Define raft_add_peer
Browse files Browse the repository at this point in the history
  • Loading branch information
willemt committed Sep 11, 2015
1 parent 492804f commit 422245f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/raft.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ __attribute__ ((deprecated));
* @return 0 on success; otherwise -1 */
int raft_add_node(raft_server_t* me, void* user_data, int is_self);

#define raft_add_peer raft_add_node

/** Set election timeout.
* The amount of time that needs to elapse before we assume the leader is down
* @param[in] msec Election timeout in milliseconds */
Expand Down

0 comments on commit 422245f

Please sign in to comment.