mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
Validators.checkMessage() is used twice. (#3435)
* fix(broker): can not clear topic unitSubFlag (#3429) Co-authored-by: lushilin <lushilin.me@bytedance.com> * Validators.checkMessage() is used twice.The other is used in sendDefaultImpl Co-authored-by: lushilin <897401919@qq.com> Co-authored-by: lushilin <lushilin.me@bytedance.com>
This commit is contained in:
co-authored by
lushilin
lushilin
parent
c6aeb782e5
commit
a51598dea5
@@ -331,7 +331,6 @@ public class DefaultMQProducer extends ClientConfig implements MQProducer {
|
||||
@Override
|
||||
public SendResult send(
|
||||
Message msg) throws MQClientException, RemotingException, MQBrokerException, InterruptedException {
|
||||
Validators.checkMessage(msg, this);
|
||||
msg.setTopic(withNamespace(msg.getTopic()));
|
||||
return this.defaultMQProducerImpl.send(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user