summaryrefslogtreecommitdiffstats
path: root/tokio-signal/examples/sighup-example.rs
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2019-07-20 15:12:53 -0700
committerGitHub <noreply@github.com>2019-07-20 15:12:53 -0700
commitd9688bc09485e0c3e732a5ed3e3749f5e893aed9 (patch)
treefbda5ce255504831ae2162ebdd9f06f8a3404955 /tokio-signal/examples/sighup-example.rs
parent320a5fdca7637e4045d4e3c8a7e592e3a833b1da (diff)
signal: change unix::Signal to return () instead of signum (#1330)
* This simplifies the API surface by returning () instead of the signal number that was used during registration. This also more closely mirrors the cross-platform `CtrlC` event stream API * This is a **breaking change**
Diffstat (limited to 'tokio-signal/examples/sighup-example.rs')
-rw-r--r--tokio-signal/examples/sighup-example.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/tokio-signal/examples/sighup-example.rs b/tokio-signal/examples/sighup-example.rs
index 08972b9e..ef84194d 100644
--- a/tokio-signal/examples/sighup-example.rs
+++ b/tokio-signal/examples/sighup-example.rs
@@ -20,12 +20,8 @@ mod platform {
// Up until now, we haven't really DONE anything, just prepared
// our futures, now it's time to actually await the results!
- while let Some(the_signal) = stream.next().await {
- println!(
- "*Got signal {:#x}* I should probably reload my config \
- or something",
- the_signal
- );
+ while let Some(_) = stream.next().await {
+ println!("*Got signal* I should probably reload my config or something");
}
}
}