提交 66599fcb 编写于 作者: G geomon

modify startWithRegistryCenter()

上级 adc33c4c
......@@ -109,11 +109,11 @@ public final class Bootstrap {
final Collection<String> shardingSchemaNames, final Map<String, YamlProxyRuleConfiguration> ruleConfigs, final int port) {
try (ShardingOrchestrationFacade shardingOrchestrationFacade = new ShardingOrchestrationFacade(
new OrchestrationConfigurationYamlSwapper().swap(serverConfig.getOrchestration()), shardingSchemaNames)) {
initShardingOrchestrationFacade(serverConfig, ruleConfigs, shardingOrchestrationFacade);
Authentication authentication = shardingOrchestrationFacade.getConfigService().loadAuthentication();
Properties properties = shardingOrchestrationFacade.getConfigService().loadProperties();
ConfigurationLogger.log(authentication);
ConfigurationLogger.log(properties);
initShardingOrchestrationFacade(serverConfig, ruleConfigs, shardingOrchestrationFacade);
ShardingProxyContext.getInstance().init(authentication, properties);
LogicSchemas.getInstance().init(shardingSchemaNames, getSchemaDataSourceParameterMap(shardingOrchestrationFacade), getSchemaRules(shardingOrchestrationFacade), true);
initOpenTracing();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册