mirror of
https://github.com/actix/examples
synced 2025-06-27 01:27:43 +02:00
resolved formatting
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
use std::{sync::mpsc, thread};
|
||||
use actix_web::{get, middleware, post, web, App, HttpResponse, HttpServer};
|
||||
use futures::executor;
|
||||
use std::{sync::mpsc, thread};
|
||||
use tokio::signal::unix::{signal, SignalKind};
|
||||
|
||||
|
||||
#[get("/hello")]
|
||||
async fn hello() -> &'static str {
|
||||
"Hello world!"
|
||||
@ -59,7 +58,7 @@ async fn main() -> std::io::Result<()> {
|
||||
println!("\n*** SIGINT received. Stopping server, gracefully. ***\n");
|
||||
stopper.send(()).unwrap();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// run server
|
||||
server.await
|
||||
|
Reference in New Issue
Block a user