Skip to content

Commit

Permalink
apache#7318, remove governance updater (apache#8680)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuohai666 authored Dec 17, 2020
1 parent 93764d3 commit c6886d0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,6 @@ public void onlineInstance() {
listenerManager.init();
}

/**
* Update configurations.
*
* @param dataSourceConfigMap schema data source configuration map
* @param schemaRuleMap schema rule map
*/
public void updateConfigurations(final Map<String, Map<String, DataSourceConfiguration>> dataSourceConfigMap, final Map<String, Collection<RuleConfiguration>> schemaRuleMap) {
for (Entry<String, Map<String, DataSourceConfiguration>> entry : dataSourceConfigMap.entrySet()) {
configCenter.persistConfigurations(entry.getKey(), dataSourceConfigMap.get(entry.getKey()), schemaRuleMap.get(entry.getKey()), true);
}
}

@Override
public void close() {
repositoryFacade.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import org.apache.shardingsphere.infra.lock.LockStrategyType;
import org.apache.shardingsphere.infra.yaml.swapper.YamlRuleConfigurationSwapperEngine;
import org.apache.shardingsphere.proxy.config.ProxyConfiguration;
import org.apache.shardingsphere.proxy.config.ProxyConfigurationUpdater;
import org.apache.shardingsphere.proxy.config.YamlProxyConfiguration;
import org.apache.shardingsphere.proxy.config.util.DataSourceParameterConverter;
import org.apache.shardingsphere.proxy.config.yaml.YamlProxyRuleConfiguration;
Expand All @@ -52,7 +51,7 @@
*/
public final class GovernanceBootstrapInitializer extends AbstractBootstrapInitializer {

private final GovernanceFacade governanceFacade = ProxyConfigurationUpdater.getGovernanceFacade();
private final GovernanceFacade governanceFacade = new GovernanceFacade();

@Override
protected ProxyConfiguration getProxyConfiguration(final YamlProxyConfiguration yamlConfig) {
Expand Down

This file was deleted.

0 comments on commit c6886d0

Please sign in to comment.