From 506ad2d444a8f4e00ff50a9d30ad8d750bb1d42b Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Wed, 28 Jan 2026 19:25:52 +0800 Subject: [PATCH] fix(tmq): decode heartbeat msg error if there is a consumer --- source/client/src/clientTmq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/client/src/clientTmq.c b/source/client/src/clientTmq.c index 0f87e24af6e2..28e879b52c50 100644 --- a/source/client/src/clientTmq.c +++ b/source/client/src/clientTmq.c @@ -20,6 +20,7 @@ #include "tdatablock.h" #include "tdef.h" #include "tglobal.h" +#include "tmsg.h" #include "tqueue.h" #include "tref.h" #include "ttimer.h" @@ -1841,7 +1842,7 @@ tmq_t* tmq_consumer_new(tmq_conf_t* conf, char* errstr, int32_t errstrLen) { } // init connection - code = taos_connect_internal(conf->ip, user, pass, NULL, NULL, conf->port, CONN_TYPE__TMQ, &pTmq->pTscObj); + code = taos_connect_internal(conf->ip, user, pass, NULL, NULL, conf->port, CONN_TYPE__QUERY, &pTmq->pTscObj); if (code) { terrno = code; tqErrorC("consumer:0x%" PRIx64 " setup failed since %s, groupId:%s", pTmq->consumerId, terrstr(), pTmq->groupId);