|
|
@ -153,7 +153,7 @@ async fn main() {
|
|
|
|
|
|
|
|
|
|
|
|
let (addr, server) = warp::serve(push
|
|
|
|
let (addr, server) = warp::serve(push
|
|
|
|
.or(read))
|
|
|
|
.or(read))
|
|
|
|
.bind_with_graceful_shutdown(([127,0,0,1], 8777), async { tokio::signal::ctrl_c().await.unwrap(); });
|
|
|
|
.bind_with_graceful_shutdown(([127,0,0,1], 8001), async { tokio::signal::ctrl_c().await.unwrap(); });
|
|
|
|
|
|
|
|
|
|
|
|
println!("Server bound on {:?}", addr);
|
|
|
|
println!("Server bound on {:?}", addr);
|
|
|
|
server.await
|
|
|
|
server.await
|
|
|
|