terrymanu commented on a change in pull request #14998:
URL: https://github.com/apache/shardingsphere/pull/14998#discussion_r790615225



##########
File path: 
shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/distsql/rql/resource/DataSourceQueryResultSet.java
##########
@@ -54,22 +61,17 @@
     @Override
     public void init(final ShardingSphereMetaData metaData, final SQLStatement 
sqlStatement) {
         resource = metaData.getResource();
-        Optional<MetaDataPersistService> persistService = 
ProxyContext.getInstance().getContextManager().getMetaDataContexts().getMetaDataPersistService();
-        
-        if (persistService.isPresent()) {
-            dataSourcePropsMap = 
persistService.get().getDataSourceService().load(metaData.getName());
-        } else {
-            dataSourcePropsMap = new 
LinkedHashMap<>(metaData.getResource().getDataSources().size(), 1);
-            for (Entry<String, DataSource> entry : 
metaData.getResource().getDataSources().entrySet()) {
-                dataSourcePropsMap.put(entry.getKey(), 
DataSourcePropertiesCreator.create(entry.getValue()));
-            }
+        dataSourcePropsMap = new 
LinkedHashMap<>(metaData.getResource().getDataSources().size(), 1);
+        for (Map.Entry<String, DataSource> entry : 
metaData.getResource().getDataSources().entrySet()) {

Review comment:
       Please use `Entry` instead of `Map.Entry`




-- 
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]


Reply via email to