Fix typo (#2089)
This commit is contained in:
committed by
GitHub
Unverified
parent
a85bd9a4d9
commit
127a31ea6a
+1
-1
@@ -408,7 +408,7 @@ func (ctl *Control) manager() {
|
||||
for {
|
||||
select {
|
||||
case <-heartbeat.C:
|
||||
if time.Since(ctl.lastPing) > time.Duration(ctl.serverCfg.HeartBeatTimeout)*time.Second {
|
||||
if time.Since(ctl.lastPing) > time.Duration(ctl.serverCfg.HeartbeatTimeout)*time.Second {
|
||||
xl.Warn("heartbeat timeout")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user