zk-drizzle commented on code in PR #1215:
URL: https://github.com/apache/rocketmq-clients/pull/1215#discussion_r3057794609
##########
nodejs/src/message/Message.ts:
##########
@@ -49,6 +51,26 @@ export class Message {
if (options.messageGroup) {
throw new Error('priority and messageGroup should not be set at same
time');
}
+ if (options.liteTopic) {
+ throw new Error('priority and liteTopic should not be set at same
time');
+ }
+ }
+
+ // Validate mutual exclusivity - liteTopic
+ if (options.liteTopic !== undefined) {
+ if (options.deliveryTimestamp) {
+ throw new Error('liteTopic and deliveryTimestamp should not be set at
same time');
+ }
+ if (options.messageGroup) {
+ throw new Error('liteTopic and messageGroup should not be set at same
time');
+ }
+ }
+
+ // Validate mutual exclusivity - deliveryTimestamp
+ if (options.deliveryTimestamp !== undefined) {
Review Comment:
Also add checks for delay
--
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]