fix(net): fix the typo in set_write_timeout

This commit is contained in:
OlegTsyba
2016-02-17 19:13:40 +02:00
parent af944d784c
commit 7c76fff3aa

View File

@@ -477,8 +477,8 @@ impl<S: NetworkStream> NetworkStream for HttpsStream<S> {
#[inline]
fn set_write_timeout(&self, dur: Option<Duration>) -> io::Result<()> {
match *self {
HttpsStream::Http(ref inner) => inner.0.set_read_timeout(dur),
HttpsStream::Https(ref inner) => inner.set_read_timeout(dur)
HttpsStream::Http(ref inner) => inner.0.set_write_timeout(dur),
HttpsStream::Https(ref inner) => inner.set_write_timeout(dur)
}
}