Skip to content

Commit a151fa2

Browse files
committed
Call run_async
1 parent 09006cb commit a151fa2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/boost/beast2/server/workers.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <boost/beast2/server/http_stream.hpp>
1818
#include <boost/capy/application.hpp>
1919
#include <boost/capy/task.hpp>
20-
#include <boost/capy/ex/async_run.hpp>
20+
#include <boost/capy/ex/run_async.hpp>
2121
#include <boost/corosio/acceptor.hpp>
2222
#include <boost/corosio/socket.hpp>
2323
#include <boost/corosio/io_context.hpp>
@@ -146,7 +146,7 @@ start()
146146
stopped_ = false;
147147
for (std::size_t i = 0; i < acceptors_.size(); ++i)
148148
{
149-
capy::async_run(ioc_.get_executor())(
149+
capy::run_async(ioc_.get_executor())(
150150
accept_loop(acceptors_[i], configs_[i]));
151151
}
152152
}
@@ -212,7 +212,7 @@ accept_loop(corosio::acceptor& acc, http::acceptor_config config)
212212
}
213213

214214
// Spawn session coroutine
215-
capy::async_run(ioc_.get_executor())(
215+
capy::run_async(ioc_.get_executor())(
216216
run_session(*free_worker, config));
217217
}
218218
}

0 commit comments

Comments
 (0)