静态服务发现健康检查部分完善标签

This commit is contained in:
Liujian
2022-06-10 16:00:16 +08:00
parent a1e74ffeb3
commit 0b9fa197b6
3 changed files with 14 additions and 13 deletions

View File

@@ -43,6 +43,9 @@ type HTTPCheck struct {
//doCheckLoop 定时检查,维护了一个待检测节点集合
func (h *HTTPCheck) doCheckLoop() {
if h.config.Period < 1 {
return
}
ticker := time.NewTicker(h.config.Period)
nodes := map[string]map[string]*checkNode{}
defer ticker.Stop()