Fix style errors

This commit is contained in:
Richard Hodges
2020-07-04 08:12:10 +02:00
parent b84d8ad3d4
commit de1e63c597
11 changed files with 39 additions and 98 deletions
+4 -3
View File
@@ -355,11 +355,12 @@ int main(int argc, char* argv[])
// The io_context is required for all I/O
net::io_context ioc;
// The work keeps io_context::run from returning
auto work = net::any_io_executor(
// Building a tracked executor ensures that the underlying context's
// run() function will not return until the tracked executor is destroyed
net::any_io_executor work =
net::prefer(
ioc.get_executor(),
net::execution::outstanding_work.tracked));
net::execution::outstanding_work.tracked);
// The report holds the aggregated statistics
crawl_report report{ioc};