Commit 93acdf5c authored by yukang's avatar yukang Committed by vipwzw

Format code for ci

parent 3061ce77
......@@ -154,12 +154,12 @@ func New(cfg *types.Consensus, sub []byte) queue.Module {
}
para := &client{
BaseClient: c,
grpcClient: grpcCli,
authAccount: subcfg.AuthAccount,
privateKey: priKey,
subCfg: &subcfg,
quitCreate: make(chan struct{}),
BaseClient: c,
grpcClient: grpcCli,
authAccount: subcfg.AuthAccount,
privateKey: priKey,
subCfg: &subcfg,
quitCreate: make(chan struct{}),
}
waitBlocks := int32(2) //最小是2
......
......@@ -105,7 +105,7 @@ func (client *client) batchSyncBlocks() {
client.setBlockSyncState(BlockSyncStateSyncing)
plog.Info("Para sync - syncing")
errCount := int32(0)
errCount := int32(0)
for {
//获取同步状态,在需要同步的情况下执行同步
curSyncCaughtState, err := client.syncBlocksIfNeed()
......
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