提交 a5885b47 编写于 作者: A Azat Khuzhin

Fix modernize-avoid-bind in ParallelParsingBlockInputStream

上级 0cb66695
......@@ -63,8 +63,10 @@ void ParallelParsingBlockInputStream::cancel(bool kill)
void ParallelParsingBlockInputStream::scheduleParserThreadForUnitWithNumber(size_t ticket_number)
{
pool.scheduleOrThrowOnError(std::bind(
&ParallelParsingBlockInputStream::parserThreadFunction, this, CurrentThread::getGroup(), ticket_number));
pool.scheduleOrThrowOnError([this, ticket_number]()
{
parserThreadFunction(CurrentThread::getGroup(), ticket_number);
});
}
void ParallelParsingBlockInputStream::finishAndWait()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册