zk-drizzle commented on code in PR #1215:
URL: https://github.com/apache/rocketmq-clients/pull/1215#discussion_r3055329151


##########
nodejs/src/consumer/Consumer.ts:
##########
@@ -126,4 +127,25 @@ export abstract class Consumer extends BaseClient {
     const res = await 
this.rpcClientManager.forwardMessageToDeadLetterQueue(endpoints, request, 
timeout);
     return res;
   }
+
+  /**
+   * Get the consumer group name.
+   *
+   * @return Consumer group name
+   */
+  getConsumerGroup(): string {
+    return this.consumerGroup;
+  }
+
+  /**
+   * Check if this is a lite consumer.
+   *
+   * @return true if this is a LITE_PUSH_CONSUMER or LITE_SIMPLE_CONSUMER
+   */
+  protected isLiteConsumer(): boolean {

Review Comment:
   Let's keep it simple.
   
   protected isLiteConsumer(): boolean {
     const clientType = this.getClientType();
     return clientType === ClientType.LITE_PUSH_CONSUMER 
         || clientType === ClientType.LITE_SIMPLE_CONSUMER;
   }



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