Skip to content

Commit

Permalink
use the correct spi ZookeeperTransporter when initialize the default …
Browse files Browse the repository at this point in the history
…ConfigCenter's zkClient(apache#4511)
  • Loading branch information
CodingSinger committed Jul 11, 2019
1 parent 519df67 commit cadc5ab
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ private void useRegistryForConfigIfNecessary() {
Environment.getInstance().getDynamicConfiguration().orElseGet(() -> {
ConfigManager configManager = ConfigManager.getInstance();
ConfigCenterConfig cc = configManager.getConfigCenter().orElse(new ConfigCenterConfig());
cc.setParameters(new HashMap<>());
cc.getParameters().put(org.apache.dubbo.remoting.Constants.CLIENT_KEY,rc.getClient());
cc.setProtocol(rc.getProtocol());
cc.setAddress(rc.getAddress());
cc.setHighestPriority(false);
Expand Down

0 comments on commit cadc5ab

Please sign in to comment.