zjcnb commented on code in PR #19005:
URL: https://github.com/apache/shardingsphere/pull/19005#discussion_r917410881
##########
shardingsphere-features/shardingsphere-db-discovery/shardingsphere-db-discovery-core/src/main/java/org/apache/shardingsphere/dbdiscovery/rule/DatabaseDiscoveryDataSourceRule.java:
##########
@@ -100,6 +101,22 @@ public void changePrimaryDataSourceName(final String
primaryDataSourceName) {
this.primaryDataSourceName = primaryDataSourceName;
}
+ /**
+ * Get data source.
+ *
+ * @param dataSourceMap data source map
+ * @return data source
+ */
+ public Map<String, DataSource> getDataSourceGroup(final Map<String,
DataSource> dataSourceMap) {
+ Map<String, DataSource> result = new HashMap<>(dataSourceMap.size(),
1);
+ for (Map.Entry<String, DataSource> entry : dataSourceMap.entrySet()) {
Review Comment:
Ok, i 'm adjusted
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]