Skip to content

Commit 5c7434e

Browse files
committed
server: Tell where the server is listening
Signed-off-by: Fabian Deutsch <[email protected]>
1 parent b668f32 commit 5c7434e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/server.rs

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ fn main() {
115115

116116
let state = Arc::new(RwLock::new(0));
117117

118+
println!("Listening on {}", addr);
119+
118120
// We provide a way to *instantiate* the service for each new
119121
// connection; here, we just immediately return a new instance.
120122
server.serve(move || {

0 commit comments

Comments
 (0)