Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
呈铭 committed Mar 4, 2024
1 parent df66482 commit 2598309
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ public synchronized void init() {
nacosConfig.putAll(parameters);
}

try {
if (providerObserver == null) {
providerObserver = new NacosRegistryProviderObserver();
}
if (providerObserver == null) {
providerObserver = new NacosRegistryProviderObserver();
}

try {
namingService = NamingFactory.createNamingService(nacosConfig);
} catch (NacosException e) {
throw new SofaRpcRuntimeException(LogCodes.getLog(LogCodes.ERROR_INIT_NACOS_NAMING_SERVICE, address), e);
Expand Down

0 comments on commit 2598309

Please sign in to comment.