Commit 36ab6d9d authored by yukang's avatar yukang Committed by vipwzw

Optimize sync implement for performace

parent 5d46b050
......@@ -5,16 +5,16 @@
package para
import (
"encoding/hex"
"fmt"
"sync"
"time"
"encoding/hex"
log "github.com/33cn/chain33/common/log/log15"
"sync/atomic"
"time"
"github.com/33cn/chain33/client/api"
"github.com/33cn/chain33/common/crypto"
"github.com/33cn/chain33/common/merkle"
......@@ -212,6 +212,7 @@ func (client *client) CheckBlock(parent *types.Block, current *types.BlockDetail
func (client *client) Close() {
client.BaseClient.Close()
close(client.commitMsgClient.quit)
close(client.blockSyncClient.quitChan)
close(client.quitCreate)
close(client.blockSyncClient.quitChan)
client.wg.Wait()
......
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