Skip to content

Commit

Permalink
fix #450: Unreasonable kafka init offset in jobmaker
Browse files Browse the repository at this point in the history
  • Loading branch information
SwimmingTiger committed Jun 9, 2020
1 parent 7936ce3 commit f312ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitcoin/JobMakerBitcoin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ bool JobMakerHandlerBitcoin::initConsumerHandlers(
auto kafkaConsumer =
std::make_shared<KafkaQueueConsumer>(kafkaBrokers, topics);
std::map<string, string> options{{"fetch.wait.max.ms", "5"}};
kafkaConsumer->setup(1, &options);
kafkaConsumer->setup(RD_KAFKA_OFFSET_TAIL(1), &options);
JobMakerConsumerHandler handler{
kafkaConsumer, [this](const std::string &msg, const std::string &topic) {
if (topic == def()->rawGbtTopic_) {
Expand Down

0 comments on commit f312ceb

Please sign in to comment.