Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Willemt Raft
Commits
bef6e6fd
Commit
bef6e6fd
authored
Feb 15, 2014
by
willem
Browse files
Refactoring
parent
220ef621
Changes
2
Show whitespace changes
Inline
Side-by-side
.travis.yml
View file @
bef6e6fd
language
:
c
before_install
:
-
sudo pip install cpp-coveralls --use-mirrors
script
:
...
...
raft_server.c
View file @
bef6e6fd
...
...
@@ -114,7 +114,6 @@ void raft_become_candidate(raft_server_t* me_)
/* we need a random factor here to prevent simultaneous candidates */
me
->
timeout_elapsed
=
rand
()
%
500
;
/* request votes from nodes */
for
(
i
=
0
;
i
<
me
->
num_nodes
;
i
++
)
{
if
(
me
->
nodeid
==
i
)
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment