Merge pull request #64403 from ClickHouse/fix-comment

Remove wrong comment
This commit is contained in:
Sergei Trifonov 2024-06-13 12:32:33 +00:00 committed by GitHub
commit b37e443b3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,6 @@ ThreadPoolCallbackRunnerUnsafe<Result, Callback> threadPoolCallbackRunnerUnsafe(
auto future = task->get_future();
/// ThreadPool is using "bigger is higher priority" instead of "smaller is more priority".
/// Note: calling method scheduleOrThrowOnError in intentional, because we don't want to throw exceptions
/// in critical places where this callback runner is used (e.g. loading or deletion of parts)
my_pool->scheduleOrThrowOnError([my_task = std::move(task)]{ (*my_task)(); }, priority);
@ -163,7 +162,6 @@ public:
task->future = task_func->get_future();
/// ThreadPool is using "bigger is higher priority" instead of "smaller is more priority".
/// Note: calling method scheduleOrThrowOnError in intentional, because we don't want to throw exceptions
/// in critical places where this callback runner is used (e.g. loading or deletion of parts)
pool.scheduleOrThrowOnError([my_task = std::move(task_func)]{ (*my_task)(); }, priority);