fix(examples): hello example fix for multithread (#808)

This commit is contained in:
Kei Tsuji
2016-05-28 02:05:27 +09:00
committed by Sean McArthur
parent cee36d4305
commit 341b784106

View File

@@ -42,7 +42,7 @@ fn main() {
let listener = listener.try_clone().unwrap();
handles.push(::std::thread::spawn(move || {
Server::new(listener)
.handle(|_| Hello).unwrap()
.handle(|_| Hello).unwrap();
}));
}
println!("Listening on http://127.0.0.1:3000");