mirror of
https://github.com/Noratrieb/icefun.git
synced 2026-01-15 05:05:01 +01:00
loop
This commit is contained in:
parent
43b96cd25f
commit
4d90501fee
4 changed files with 35 additions and 21 deletions
|
|
@ -14,6 +14,5 @@ fn main() {
|
|||
.with(warp::trace::request()),
|
||||
);
|
||||
let make_svc = make_service_fn(move |_| future::ok::<_, Infallible>(svc.clone()));
|
||||
let addr = SocketAddr::from(([127, 0, 0, 1], 0));
|
||||
tokio::spawn(hyper::Server::bind(&addr).serve(make_svc));
|
||||
tokio::spawn(hyper::Server::bind().serve(make_svc));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue