Clean up code warnings

This commit is contained in:
Tim Kuehn
2018-03-25 23:52:36 -07:00
parent 326f0270b9
commit b2282f9d7a
5 changed files with 9 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ impl Shutdown {
/// The returned future resolves when the server is completely shut down.
pub fn shutdown(&self) -> ShutdownFuture {
let (tx, rx) = oneshot::channel();
let inner = if self.tx.send(tx).is_err() {
let inner = if self.tx.unbounded_send(tx).is_err() {
trace!("Server already initiated shutdown.");
futures::Either::A(futures::ok(()))
} else {