From 271a292ea517cfc1b9294de0e056ae41b1c5582a Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 30 Nov 2017 14:44:58 -0800 Subject: [PATCH] no need to store disconnected state on task --- src/task.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/task.rs b/src/task.rs index 009ec52e4..7c5d8883a 100644 --- a/src/task.rs +++ b/src/task.rs @@ -149,7 +149,6 @@ pub struct Task { iostate: IOState, stream: TaskStream, drain: Vec>>, - disconnected: bool, middlewares: Option, } @@ -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(); }