fix
sunty
2020-10-22 2f38e1c740d192362c7f5973d8d2852b9fd0d74b
fix
1个文件已修改
4 ■■■■ 已修改文件
ClusterApi.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ClusterApi.go
@@ -99,7 +99,7 @@
}
//验证节点服务是否正常启动
func VerifyNodeServer(ip string, port string) bool {
func VerifyNodeServer(ip string, port string, waitTime int) bool {
    b := false
    url := "http://" + ip + ":" + port
    for i := 1; i < 3; i++ {
@@ -107,7 +107,7 @@
        if err != nil {
            b = false
            if i < 3 {
                time.Sleep(time.Second * 10)
                time.Sleep(time.Second * time.Duration(waitTime))
                continue
            }
        } else {