EMsnap commented on code in PR #9074:
URL: https://github.com/apache/inlong/pull/9074#discussion_r1369483512
##########
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/client/InlongStreamClient.java:
##########
@@ -107,6 +107,23 @@ public InlongStreamInfo getStreamInfo(String groupId,
String streamId) {
}
}
+ /**
+ * Get inlong stream brief info by the given groupId and streamId.
+ */
+ public InlongStreamBriefInfo getStreamBriefInfo(String groupId, String
streamId) {
+ Response<InlongStreamBriefInfo> response =
+
ClientUtils.executeHttpCall(inlongStreamApi.getStreamBriefInfo(groupId,
streamId));
+
+ if (response.isSuccess()) {
+ return response.getData();
+ }
+ if (response.getErrMsg().contains("not exist")) {
+ return null;
+ } else {
Review Comment:
no need for else here
--
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]