From 2f38e1c740d192362c7f5973d8d2852b9fd0d74b Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 22 十月 2020 18:56:55 +0800
Subject: [PATCH] fix
---
ClusterApi.go | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ClusterApi.go b/ClusterApi.go
index bdae03a..a0be010 100644
--- a/ClusterApi.go
+++ b/ClusterApi.go
@@ -99,7 +99,7 @@
}
//楠岃瘉鑺傜偣鏈嶅姟鏄惁姝e父鍚姩
-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 {
--
Gitblit v1.8.0