Commit 4c276e65 authored by mdj33's avatar mdj33 Committed by 33cn

linter err

parent c9ffd835
...@@ -490,7 +490,6 @@ func (client *commitMsgClient) mainSync() error { ...@@ -490,7 +490,6 @@ func (client *commitMsgClient) mainSync() error {
func (client *commitMsgClient) getConsensusHeight(consensusRst chan *pt.ParacrossStatus) { func (client *commitMsgClient) getConsensusHeight(consensusRst chan *pt.ParacrossStatus) {
ticker := time.NewTicker(time.Second * time.Duration(consensusInterval)) ticker := time.NewTicker(time.Second * time.Duration(consensusInterval))
isSync := false isSync := false
isCaughtUp := false
defer ticker.Stop() defer ticker.Stop()
out: out:
...@@ -508,7 +507,7 @@ out: ...@@ -508,7 +507,7 @@ out:
} }
client.paraClient.mtx.Lock() client.paraClient.mtx.Lock()
isCaughtUp = client.paraClient.isCaughtUp isCaughtUp := client.paraClient.isCaughtUp
client.paraClient.mtx.Unlock() client.paraClient.mtx.Unlock()
if !isCaughtUp { if !isCaughtUp {
plog.Debug("getConsensusHeight para is CatchingUp") plog.Debug("getConsensusHeight para is CatchingUp")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment