fuweng11 commented on code in PR #9057:
URL: https://github.com/apache/inlong/pull/9057#discussion_r1367604423
##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/es/ElasticsearchConfig.java:
##########
@@ -45,7 +39,8 @@
public class ElasticsearchConfig {
private static final Logger logger =
LoggerFactory.getLogger(ElasticsearchConfig.class);
- private static RestHighLevelClient highLevelClient;
+ private static RestTemplate restTemplate;
Review Comment:
Why not use
`@Autowired
private RestTemplate restTemplate;` ?
##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/es/ElasticsearchConfig.java:
##########
@@ -45,7 +39,8 @@
public class ElasticsearchConfig {
private static final Logger logger =
LoggerFactory.getLogger(ElasticsearchConfig.class);
- private static RestHighLevelClient highLevelClient;
+ private static RestTemplate restTemplate;
Review Comment:
Why not use
`@Autowired
private RestTemplate restTemplate;` ?
--
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]