No need to explicitly flush

This commit is contained in:
Steven Fackler 2016-12-23 00:33:11 -05:00
parent 9466dfed2d
commit 94841285a2

View File

@ -164,7 +164,6 @@ impl Connection {
result
.into_future()
.and_then(move |()| self.0.send(buf))
.and_then(|s| s.flush())
.map_err(ConnectError::Io)
.map(move |s| (Connection(s), params))
.boxed()