File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 135
135
{term :: ra_term (),
136
136
candidate_id :: ra_server_id (),
137
137
last_log_index :: ra_index (),
138
- last_log_term :: ra_index ()}).
138
+ last_log_term :: ra_term ()}).
139
139
140
140
% % Section 4.2
141
141
-record (request_vote_result ,
151
151
token :: reference (),
152
152
candidate_id :: ra_server_id (),
153
153
last_log_index :: ra_index (),
154
- last_log_term :: ra_index ()}).
154
+ last_log_term :: ra_term ()}).
155
155
156
156
-record (pre_vote_result ,
157
157
{term :: ra_term (),
Original file line number Diff line number Diff line change 46
46
-record (state , {last_index = 0 :: ra_index (),
47
47
last_written = {0 , 0 } :: ra_idxterm (), % only here to fake the async api of the file based one
48
48
entries = #{0 => {0 , undefined }} ::
49
- #{ra_term () => {ra_index (), term ()}},
49
+ #{ra_index () => {ra_term (), term ()}},
50
50
meta = #{} :: ra_log_memory_meta (),
51
51
snapshot :: option ({ra_snapshot :meta (), term ()})}).
52
52
You can’t perform that action at this time.
0 commit comments