Fix modernize-avoid-bind in ParallelParsingBlockInputStream

This commit is contained in:
Azat Khuzhin 2020-07-23 01:02:44 +03:00
parent 0cb6669531
commit a5885b476f

View File

@ -63,8 +63,10 @@ void ParallelParsingBlockInputStream::cancel(bool kill)
void ParallelParsingBlockInputStream::scheduleParserThreadForUnitWithNumber(size_t ticket_number) void ParallelParsingBlockInputStream::scheduleParserThreadForUnitWithNumber(size_t ticket_number)
{ {
pool.scheduleOrThrowOnError(std::bind( pool.scheduleOrThrowOnError([this, ticket_number]()
&ParallelParsingBlockInputStream::parserThreadFunction, this, CurrentThread::getGroup(), ticket_number)); {
parserThreadFunction(CurrentThread::getGroup(), ticket_number);
});
} }
void ParallelParsingBlockInputStream::finishAndWait() void ParallelParsingBlockInputStream::finishAndWait()