Skip to content

Commit c2521a7

Browse files
committed
chore: fix typos
Signed-off-by: coderwander <770732124@qq.com>
1 parent 6192607 commit c2521a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/bft/heartbeatmonitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func (hm *HeartbeatMonitor) InjectArtificialHeartbeat(sender uint64, msg *smartb
160160
}
161161

162162
func (hm *HeartbeatMonitor) StopLeaderSendMsg() {
163-
hm.logger.Infof("Changing role to folower without change current view and current leader")
163+
hm.logger.Infof("Changing role to follower without change current view and current leader")
164164
select {
165165
case hm.commandChan <- roleChange{
166166
onlyStopSendHeartbearFromLeader: true,

internal/bft/viewchanger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ func (v *ViewChanger) validateNewViewMsg(msg *protos.NewView) (valid bool, sync
10021002
}
10031003

10041004
if lastDecisionMD.LatestSequence > mySequence+1 { // this is a decision in the future, can't verify it and should sync
1005-
v.Synchronizer.Sync() // TODO check if I manged to sync to latest decision, revalidate new view, and join the other nodes
1005+
v.Synchronizer.Sync() // TODO check if I managed to sync to latest decision, revalidate new view, and join the other nodes
10061006
return true, true, false
10071007
}
10081008

0 commit comments

Comments
 (0)