File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,6 @@ type RequestPreVoteRequest struct {
128
128
// Provide the term and our id
129
129
Term uint64
130
130
131
- // Deprecated: use RPCHeader.Addr instead
132
- Candidate []byte
133
-
134
131
// Used to ensure safety
135
132
LastLogIndex uint64
136
133
LastLogTerm uint64
Original file line number Diff line number Diff line change @@ -2059,10 +2059,8 @@ func (r *Raft) preElectSelf() <-chan *preVoteResult {
2059
2059
// Construct the request
2060
2060
lastIdx , lastTerm := r .getLastEntry ()
2061
2061
req := & RequestPreVoteRequest {
2062
- RPCHeader : r .getRPCHeader (),
2063
- Term : newTerm ,
2064
- // this is needed for retro compatibility, before RPCHeader.Addr was added
2065
- Candidate : r .trans .EncodePeer (r .localID , r .localAddr ),
2062
+ RPCHeader : r .getRPCHeader (),
2063
+ Term : newTerm ,
2066
2064
LastLogIndex : lastIdx ,
2067
2065
LastLogTerm : lastTerm ,
2068
2066
}
You can’t perform that action at this time.
0 commit comments