healchow commented on code in PR #6683:
URL: https://github.com/apache/inlong/pull/6683#discussion_r1035571782


##########
inlong-common/src/main/java/org/apache/inlong/common/pojo/agent/DataConfig.java:
##########
@@ -74,6 +75,13 @@ public class DataConfig {
     private DataProxyTopicInfo topicInfo;
 
     public boolean isValid() {
-        return true;
+        if (dataReportType == 0 || dataReportType == 1) {

Review Comment:
   Suggest extracting a constant class or enum to reuse the data report type.
   
   Please search the following constant in the manager module:
   
   ```
   public static final Integer REPORT_TO_DP_RECEIVED = 0;
   ```



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