Skip to content
Snippets Groups Projects
Commit 6508dd07 authored by zengfanwei's avatar zengfanwei
Browse files

优化代码

parent 56f978d1
No related branches found
No related tags found
No related merge requests found
...@@ -274,5 +274,4 @@ func (c *ReferenceConfig) postProcessConfig(url *common.URL) { ...@@ -274,5 +274,4 @@ func (c *ReferenceConfig) postProcessConfig(url *common.URL) {
for _, p := range extension.GetConfigPostProcessors() { for _, p := range extension.GetConfigPostProcessors() {
p.PostProcessReferenceConfig(url) p.PostProcessReferenceConfig(url)
} }
} }
...@@ -82,7 +82,7 @@ LOOP: ...@@ -82,7 +82,7 @@ LOOP:
break break
} }
failTimes++ failTimes++
logger.Warnf("ZK reconnect fail times %d", failTimes) logger.Warnf("ZK reconnect failed %d times", failTimes)
if MaxFailTimes <= failTimes { if MaxFailTimes <= failTimes {
failTimes = MaxFailTimes failTimes = MaxFailTimes
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment