Commit bc1ad3f5 by ‘chizw’

[+]多线程消费

1 parent 6f6a4653
......@@ -88,7 +88,6 @@ class MultiThreadKafka(object):
group_id=ConfigInfo.kafka_consumer_group_id, # 消费者组 ID
auto_offset_reset=ConfigInfo.kafka_consumer_auto_offset_reset, # 从最早的消息开始消费
)
print(f"seek:{self.seek}")
tp = TopicPartition(ConfigInfo.kafka_consumer_analysis_topic, self.seek)
consumer.assign([tp])
# consumer.seek(tp, self.seek)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!