From 15be014e05126400cf8429cb8db2f8c6692746ee Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Sun, 21 Jun 2020 14:13:22 -0700 Subject: [PATCH] Un-deprecate read/write timeouts. (#78) In https://github.com/algesten/ureq/pull/67#issuecomment-647112883, Shnatsel points out that there are uses for read_timeout vs timeout. For instance, when downloading a large file it's useful to have a read timouet in case the download stalls, but it would be hard to pick a good overall timeout without knowing the size of the file and the bandwidth of the connection. --- src/request.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/request.rs b/src/request.rs index 7429538..205850a 100644 --- a/src/request.rs +++ b/src/request.rs @@ -369,7 +369,6 @@ impl Request { /// .call(); /// println!("{:?}", r); /// ``` - #[deprecated(note = "Please use the timeout() function instead")] pub fn timeout_read(&mut self, millis: u64) -> &mut Request { self.timeout_read = millis; self @@ -387,7 +386,6 @@ impl Request { /// .call(); /// println!("{:?}", r); /// ``` - #[deprecated(note = "Please use the timeout() function instead")] pub fn timeout_write(&mut self, millis: u64) -> &mut Request { self.timeout_write = millis; self