fix:[TD-31250] change poll delay 1s->5s to avoid no data generated by stream

This commit is contained in:
wangmm0220 2024-08-07 18:20:11 +08:00
parent 868e5fef0e
commit 0653297728
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ void basic_consume_loop(tmq_t* tmq, tmq_list_t* topics) {
}
int32_t cnt = 0;
while (running) {
TAOS_RES* tmqmessage = tmq_consumer_poll(tmq, 1000);
TAOS_RES* tmqmessage = tmq_consumer_poll(tmq, 5000);
if (tmqmessage) {
cnt++;
msg_process(tmqmessage);