修改NewRangeDial等待间隔为2秒

This commit is contained in:
injoyai
2025-03-24 16:40:37 +08:00
parent e76043dc29
commit 1cae60c65e

View File

@@ -73,8 +73,8 @@ func NewRangeDial(hosts []string) ios.DialFunc {
}
if i < len(hosts)-1 {
//最后一个错误返回出去
logs.Err(err)
<-time.After(time.Second * 3)
logs.Err(err, "等待2秒后尝试下一个服务地址...")
<-time.After(time.Second * 2)
}
}
return