Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Oct 7, 2024
1 parent 66a2cd1 commit 19f455b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/raft/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ int raft_apply(struct raft *r,
{
raft_index start;
raft_index index;
struct raft_entry_local_data loc;
const struct sm *entry_sm;
int rv;

Expand Down Expand Up @@ -49,8 +48,7 @@ int raft_apply(struct raft *r,
/* Append the new entries to the log. */
index = start;
for (unsigned i = 0; i < n; i++) {
loc = (local_data != NULL) ? local_data[i] : (struct raft_entry_local_data){};
rv = logAppend(r->log, r->current_term, RAFT_COMMAND, bufs[i], loc, true, NULL);
rv = logAppend(r->log, r->current_term, RAFT_COMMAND, bufs[i], true, NULL);
if (rv != 0) {
goto err_after_request_start;
}
Expand Down

0 comments on commit 19f455b

Please sign in to comment.