refactor
This commit is contained in:
@@ -119,7 +119,7 @@ void run_with_deadline(boost::asio::io_context &io_ctx, op_t &&operation,
|
|||||||
});
|
});
|
||||||
|
|
||||||
boost::system::error_code err{};
|
boost::system::error_code err{};
|
||||||
operation([&done, &err](const boost::system::error_code &err_) {
|
operation([&done, &err](auto &&err_) {
|
||||||
err = err_;
|
err = err_;
|
||||||
done = true;
|
done = true;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user