refactor: sleep for a while.

This commit is contained in:
Haojun Liao 2023-03-04 16:38:50 +08:00
parent c159fd0747
commit 33f2d07605
1 changed files with 1 additions and 0 deletions

View File

@ -1918,6 +1918,7 @@ TAOS_RES* tmq_consumer_poll(tmq_t* tmq, int64_t timeout) {
// in no topic status, delayed task also need to be processed
if (atomic_load_8(&tmq->status) == TMQ_CONSUMER_STATUS__INIT) {
tscDebug("consumer:0x%" PRIx64 " poll return since consumer is init", tmq->consumerId);
// sleep for a while
return NULL;
}