[Chore](build) enable fallthrough check annd fix some fallthrough bug (#16748)

* enable fallthrough check annd fix some fallthrough bug

* fix

* fix
This commit is contained in:
Pxl
2023-02-15 15:58:43 +08:00
committed by GitHub
parent 585b74b175
commit f50edff59d
18 changed files with 77 additions and 194 deletions

View File

@ -230,6 +230,7 @@ Status KafkaDataConsumer::group_consume(BlockingQueue<RdKafka::Message*>* queue,
std::this_thread::sleep_for(std::chrono::milliseconds(200));
break;
}
[[fallthrough]];
default:
LOG(WARNING) << "kafka consume failed: " << _id << ", msg: " << msg->errstr();
done = true;