mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-04 21:37:58 +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)
|
.workers(1)
|
||||||
.disable_signals()
|
.disable_signals()
|
||||||
.run();
|
.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(())
|
Ok(())
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
let (system, addr, server) = rx.recv().unwrap();
|
let (system, addr, server) = rx.recv().unwrap();
|
||||||
|
|
||||||
TestServer { addr, server, system }
|
TestServer {
|
||||||
|
addr,
|
||||||
|
server,
|
||||||
|
system,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Start new server with server builder
|
/// Start new server with server builder
|
||||||
|
@ -82,7 +87,8 @@ where
|
||||||
|
|
||||||
sys.run(|| {
|
sys.run(|| {
|
||||||
let server = factory(super::build()).workers(1).disable_signals().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(())
|
Ok(())
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue