Skip to content
Snippets Groups Projects
Commit dd30685c authored by 高辛格's avatar 高辛格
Browse files

fix bug

parent e11330e7
No related branches found
No related tags found
No related merge requests found
......@@ -20,5 +20,5 @@ package constant
const (
CONF_CONSUMER_FILE_PATH = "CONF_CONSUMER_FILE_PATH"
CONF_PROVIDER_FILE_PATH = "CONF_PROVIDER_FILE_PATH"
APP_LOG_CONF_FILE string = "APP_LOG_CONF_FILE"
APP_LOG_CONF_FILE = "APP_LOG_CONF_FILE"
)
......@@ -54,6 +54,7 @@ func init() {
providerConfig = nil
}
}
func checkRegistries(registries map[string]*RegistryConfig, singleRegistry *RegistryConfig) {
if len(registries) == 0 && singleRegistry != nil {
registries[constant.DEFAULT_KEY] = singleRegistry
......
......@@ -182,7 +182,7 @@ func (nr *nacosRegistry) Subscribe(url *common.URL, notifyListener registry.Noti
listener, err := nr.subscribe(url)
if err != nil {
if !r.IsAvailable() {
if !nr.IsAvailable() {
logger.Warnf("event listener game over.")
return
}
......
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