sunty
2020-04-16 9ab77756aac42171f72c3aa44d1a16b5bf6ce191
uasa unit test
1个文件已修改
3 ■■■■■ 已修改文件
controllers/swfsControllers.go 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/swfsControllers.go
@@ -157,7 +157,9 @@
        startupItem = string(body)
    }
    tick := time.Tick(1 * time.Second)
    fmt.Println("准备开始验证节点服务")
    for countdown := timeOut; countdown > 0; countdown-- {
        fmt.Println("第一次验证")
        result := Verification(startupItem, ip)
        if result == true {
            break
@@ -212,6 +214,7 @@
        fmt.Println("重启第一组服务" + ip)
        if (i+1)%coreThread == 0 {
            masterIp = append(masterIp, strings.Split(ip, ":")[0])
            fmt.Println("加入第一组并开始验证第一组 masterIp: ", masterIp)
            for i := 0; i < len(masterIp); i++ {
                go Restart(masterIp[i], timeOut)
                waitGroup.Add(1) //每创建一个goroutine,就把任务队列中任务的数量+1