提交 b7299a67 编写于 作者: T tristaZero

modify parameters

上级 4ba71b66
......@@ -18,9 +18,8 @@
package io.shardingsphere.jdbc.orchestration.spring.datasource;
import io.shardingsphere.core.jdbc.core.datasource.MasterSlaveDataSource;
import io.shardingsphere.jdbc.orchestration.config.OrchestrationConfiguration;
import io.shardingsphere.jdbc.orchestration.internal.OrchestrationFacade;
import io.shardingsphere.jdbc.orchestration.api.datasource.OrchestrationMasterSlaveDataSource;
import io.shardingsphere.jdbc.orchestration.config.OrchestrationConfiguration;
import javax.sql.DataSource;
import java.sql.SQLException;
......@@ -33,11 +32,11 @@ import java.sql.SQLException;
public final class OrchestrationSpringMasterSlaveDataSource extends OrchestrationMasterSlaveDataSource {
public OrchestrationSpringMasterSlaveDataSource(final DataSource dataSource, final OrchestrationConfiguration orchestrationConfig) throws SQLException {
super((MasterSlaveDataSource) dataSource, new OrchestrationFacade(orchestrationConfig));
super((MasterSlaveDataSource) dataSource, orchestrationConfig);
}
public OrchestrationSpringMasterSlaveDataSource(final OrchestrationConfiguration orchestrationConfig) throws SQLException {
super(new OrchestrationFacade(orchestrationConfig));
super(orchestrationConfig);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册