Skip to content

Commit

Permalink
fix(net): fix the typo in set_write_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
dethroneroyalty committed Feb 17, 2016
1 parent af944d7 commit 7c76fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 7c76fff

Please sign in to comment.