Fix logging "starting service:..."

This commit is contained in:
Jiří Andras 2024-06-12 13:01:12 +02:00
parent 912daa3d0a
commit 62b6876e75
1 changed files with 5 additions and 5 deletions

View File

@ -183,11 +183,6 @@ impl ServerInner {
}
fn run_sync(mut builder: ServerBuilder) -> io::Result<(Self, ServerEventMultiplexer)> {
let sockets = mem::take(&mut builder.sockets)
.into_iter()
.map(|t| (t.0, t.2))
.collect();
// Give log information on what runtime will be used.
let is_actix = actix_rt::System::try_current().is_some();
let is_tokio = tokio::runtime::Handle::try_current().is_ok();
@ -207,6 +202,11 @@ impl ServerInner {
);
}
let sockets = mem::take(&mut builder.sockets)
.into_iter()
.map(|t| (t.0, t.2))
.collect();
let (waker_queue, worker_handles, accept_handle) = Accept::start(sockets, &builder)?;
let mux = ServerEventMultiplexer {