🐞 fix(mq): fix dispatch parameter seq by mistake

This commit is contained in:
yangwei
2024-09-14 15:52:54 +08:00
parent 3ac523cbb1
commit bf65690cdf

View File

@@ -117,7 +117,7 @@ static void mq_dispatch_one_message(struct mq_schema *s, struct mq_message *mq_e
{ {
if (sub_elt->msg_cb) if (sub_elt->msg_cb)
{ {
if(topic->dispatch_cb)topic->dispatch_cb(mq_elt->header.topic_id,mq_elt->body, sub_elt->msg_cb, topic->dispatch_cb_arg, sub_elt->msg_cb_arg); if(topic->dispatch_cb)topic->dispatch_cb(mq_elt->header.topic_id,mq_elt->body, sub_elt->msg_cb, sub_elt->msg_cb_arg, topic->dispatch_cb_arg);
else sub_elt->msg_cb(mq_elt->header.topic_id, mq_elt->body, sub_elt->msg_cb_arg); else sub_elt->msg_cb(mq_elt->header.topic_id, mq_elt->body, sub_elt->msg_cb_arg);
} }
} }