Skip to content

Commit

Permalink
raft: don't echo Context on MsgHeartbeat
Browse files Browse the repository at this point in the history
Epic: none
Release note: none
  • Loading branch information
pav-kv committed Apr 8, 2024
1 parent 00857da commit 449f9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/raft/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ func (r *raft) handleAppendEntries(m pb.Message) {

func (r *raft) handleHeartbeat(m pb.Message) {
r.raftLog.commitTo(m.Commit)
r.send(pb.Message{To: m.From, Type: pb.MsgHeartbeatResp, Context: m.Context})
r.send(pb.Message{To: m.From, Type: pb.MsgHeartbeatResp})
}

func (r *raft) handleSnapshot(m pb.Message) {
Expand Down

0 comments on commit 449f9d1

Please sign in to comment.