From 352b31f67dc49b4e4ac873e8d856afb708f20ddd Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Wed, 1 Feb 2017 15:47:07 -0800 Subject: [PATCH] docs(examples): print that examples are using only 1 thread --- examples/hello.rs | 2 +- examples/server.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/hello.rs b/examples/hello.rs index c01eff7d..f702478b 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -32,6 +32,6 @@ fn main() { pretty_env_logger::init().unwrap(); let addr = "127.0.0.1:3000".parse().unwrap(); let server = Http::new().bind(&addr, || Ok(Hello)).unwrap(); - println!("Listening on http://{}", server.local_addr().unwrap()); + println!("Listening on http://{} with 1 thread.", server.local_addr().unwrap()); server.run().unwrap(); } diff --git a/examples/server.rs b/examples/server.rs index 999391c3..5d29d3db 100644 --- a/examples/server.rs +++ b/examples/server.rs @@ -47,6 +47,6 @@ fn main() { let addr = "127.0.0.1:1337".parse().unwrap(); let server = Http::new().bind(&addr, || Ok(Echo)).unwrap(); - println!("Listening on http://{}", server.local_addr().unwrap()); + println!("Listening on http://{} with 1 thread.", server.local_addr().unwrap()); server.run().unwrap(); }