提交 47f1292e 编写于 作者: T terrymanu

for checkstyle

上级 b2adf378
......@@ -57,7 +57,6 @@ public class SpringMasterSlaveDataSource extends MasterSlaveDataSource implement
@Override
public void renew(final MasterSlaveRule masterSlaveRule) throws SQLException {
// TODO move to orchestration
DataSourceBeanUtil.createDataSourceBean(applicationContext, masterSlaveRule.getMasterDataSourceName(), masterSlaveRule.getMasterDataSource());
for (Entry<String, DataSource> entry : masterSlaveRule.getSlaveDataSourceMap().entrySet()) {
DataSourceBeanUtil.createDataSourceBean(applicationContext, entry.getKey(), entry.getValue());
......
......@@ -48,7 +48,6 @@ public class SpringShardingDataSource extends ShardingDataSource implements Appl
@Override
public void renew(final ShardingRule newShardingRule, final Properties newProps) throws SQLException {
// TODO move to orchestration
for (Entry<String, DataSource> entry : newShardingRule.getDataSourceMap().entrySet()) {
if (entry.getValue() instanceof MasterSlaveDataSource) {
for (Entry<String, DataSource> masterSlaveEntry : ((MasterSlaveDataSource) entry.getValue()).getAllDataSources().entrySet()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册