From af58a407d8f8eb2df2702cf06d035f2a45434614 Mon Sep 17 00:00:00 2001 From: Valeryi Savich Date: Wed, 22 Jan 2020 00:23:00 +0200 Subject: [PATCH] Changed signature of the Supervisor::stop method --- bastion/src/supervisor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bastion/src/supervisor.rs b/bastion/src/supervisor.rs index b1cf1404..e49009c7 100644 --- a/bastion/src/supervisor.rs +++ b/bastion/src/supervisor.rs @@ -18,7 +18,7 @@ use fxhash::FxHashMap; use lightproc::prelude::*; use log::Level; use std::cmp::{Eq, PartialEq}; -use std::ops::{Range, RangeFrom}; +use std::ops::Range; use std::sync::Arc; use std::task::Poll; use std::time::Duration; @@ -851,7 +851,7 @@ impl Supervisor { } } - async fn stop(&mut self, range: RangeFrom) { + async fn stop(&mut self, range: Range) { debug!("Supervisor({}): Stopping range: {:?}", self.id(), range); if range.start == 0 { self.bcast.stop_children(); @@ -982,7 +982,7 @@ impl Supervisor { msg: BastionMessage::Stop, .. } => { - self.stop(0..).await; + self.stop(0..self.order.len()).await; self.stopped(); return Err(());