🐞 fix(mq): fix dispatch parameter seq by mistake
This commit is contained in:
@@ -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(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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user