mirror of
https://github.com/actix/examples
synced 2025-02-02 09:39:03 +01:00
commit
6c7b068a90
@ -28,7 +28,7 @@ fn main() -> io::Result<()> {
|
|||||||
std::env::set_var("RUST_LOG", "actix_web=info");
|
std::env::set_var("RUST_LOG", "actix_web=info");
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
|
|
||||||
let counter = Arc::new(Mutex::new(0));
|
let counter = Arc::new(Mutex::new(0usize));
|
||||||
|
|
||||||
//move is necessary to give closure below ownership of counter
|
//move is necessary to give closure below ownership of counter
|
||||||
HttpServer::new(move || {
|
HttpServer::new(move || {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user