Commit 3c8c7c30 authored by 张振华's avatar 张振华

Merge branch 'dpos-v2' of https://github.com/zzh33cn/plugin into dpos-v2

parents 79269c1c d3a594fc
...@@ -170,7 +170,7 @@ func DposPerf() { ...@@ -170,7 +170,7 @@ func DposPerf() {
sendCBTx(dposClient.csState, info) sendCBTx(dposClient.csState, info)
time.Sleep(2 * time.Second) time.Sleep(2 * time.Second)
fmt.Println("=======start GetCBInfoByCircle!=======") fmt.Println("=======start GetCBInfoByCircle!=======")
//first time, not hit //first time, not hit
dposClient.csState.GetCBInfoByCircle(task.Cycle) dposClient.csState.GetCBInfoByCircle(task.Cycle)
//second time, hit cache //second time, hit cache
......
...@@ -402,7 +402,7 @@ func Init() { ...@@ -402,7 +402,7 @@ func Init() {
func TestParallel(t *testing.T) { func TestParallel(t *testing.T) {
Parallel(func() { Parallel(func() {
mutx.Lock() mutx.Lock()
sum ++ sum++
mutx.Unlock() mutx.Unlock()
}, },
func() { func() {
......
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