mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-03 21:07:39 +03:00
Fmt
This commit is contained in:
parent
9324e1710e
commit
2f2e712fd0
1 changed files with 10 additions and 4 deletions
|
@ -59,14 +59,19 @@ where
|
|||
.workers(1)
|
||||
.disable_signals()
|
||||
.run();
|
||||
tx.send((system, local_addr, server)).expect("Failed to send Server to TestServer");
|
||||
tx.send((system, local_addr, server))
|
||||
.expect("Failed to send Server to TestServer");
|
||||
Ok(())
|
||||
})
|
||||
});
|
||||
|
||||
let (system, addr, server) = rx.recv().unwrap();
|
||||
|
||||
TestServer { addr, server, system }
|
||||
|
||||
TestServer {
|
||||
addr,
|
||||
server,
|
||||
system,
|
||||
}
|
||||
}
|
||||
|
||||
/// Start new server with server builder
|
||||
|
@ -82,7 +87,8 @@ where
|
|||
|
||||
sys.run(|| {
|
||||
let server = factory(super::build()).workers(1).disable_signals().run();
|
||||
tx.send((system, server)).expect("Failed to send Server to TestServer");
|
||||
tx.send((system, server))
|
||||
.expect("Failed to send Server to TestServer");
|
||||
Ok(())
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue