mirror of
https://github.com/actix/actix-web.git
synced 2024-11-18 23:51:14 +00:00
no need to store disconnected state on task
This commit is contained in:
parent
6e138bf373
commit
271a292ea5
1 changed files with 0 additions and 4 deletions
|
@ -149,7 +149,6 @@ pub struct Task {
|
|||
iostate: IOState,
|
||||
stream: TaskStream,
|
||||
drain: Vec<Rc<RefCell<DrainFut>>>,
|
||||
disconnected: bool,
|
||||
middlewares: Option<MiddlewaresResponse>,
|
||||
}
|
||||
|
||||
|
@ -162,7 +161,6 @@ impl Default for Task {
|
|||
iostate: IOState::Response,
|
||||
drain: Vec::new(),
|
||||
stream: TaskStream::None,
|
||||
disconnected: false,
|
||||
middlewares: None }
|
||||
}
|
||||
}
|
||||
|
@ -175,7 +173,6 @@ impl Task {
|
|||
iostate: IOState::Response,
|
||||
drain: Vec::new(),
|
||||
stream: TaskStream::None,
|
||||
disconnected: false,
|
||||
middlewares: None }
|
||||
}
|
||||
|
||||
|
@ -218,7 +215,6 @@ impl Task {
|
|||
}
|
||||
|
||||
pub(crate) fn disconnected(&mut self) {
|
||||
self.disconnected = true;
|
||||
if let TaskStream::Context(ref mut ctx) = self.stream {
|
||||
ctx.disconnected();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue