fix:offset set to earliest clearly

This commit is contained in:
wangmm0220 2023-10-16 17:53:48 +08:00
parent 473142fab7
commit 7a23615b3f
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ tmq_t* build_consumer() {
tmq_conf_set(conf, "msg.with.table.name", "true"); tmq_conf_set(conf, "msg.with.table.name", "true");
tmq_conf_set(conf, "enable.auto.commit", "true"); tmq_conf_set(conf, "enable.auto.commit", "true");
tmq_conf_set(conf, "enable.replay", "true"); tmq_conf_set(conf, "enable.replay", "true");
tmq_conf_set(conf, "auto.offset.reset", "earliest");
tmq_t* tmq = tmq_consumer_new(conf, NULL, 0); tmq_t* tmq = tmq_consumer_new(conf, NULL, 0);
assert(tmq); assert(tmq);