Unverified Commit 30e0ed9a authored by Ozan Tezcan's avatar Ozan Tezcan Committed by GitHub
Browse files

Delete leftover variable in struct raft_read_request_t (#116)

Leftover after #105
parent 499dee16
...@@ -16,7 +16,6 @@ struct raft_log_impl; ...@@ -16,7 +16,6 @@ struct raft_log_impl;
typedef struct raft_read_request { typedef struct raft_read_request {
raft_index_t read_idx; raft_index_t read_idx;
raft_term_t read_term;
raft_msg_id_t msg_id; raft_msg_id_t msg_id;
raft_read_request_callback_f cb; raft_read_request_callback_f cb;
......
...@@ -1921,7 +1921,6 @@ int raft_recv_read_request(raft_server_t* me, raft_read_request_callback_f cb, v ...@@ -1921,7 +1921,6 @@ int raft_recv_read_request(raft_server_t* me, raft_read_request_callback_f cb, v
raft_read_request_t *req = raft_malloc(sizeof(*req)); raft_read_request_t *req = raft_malloc(sizeof(*req));
req->read_idx = raft_get_current_idx(me); req->read_idx = raft_get_current_idx(me);
req->read_term = me->current_term;
req->msg_id = ++me->msg_id; req->msg_id = ++me->msg_id;
req->cb = cb; req->cb = cb;
req->cb_arg = cb_arg; req->cb_arg = cb_arg;
......
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