(&mut self, timeout: u64)
| 1552 | } |
| 1553 | |
| 1554 | fn set_timeout(&mut self, timeout: u64) -> Result<(), Error> { |
| 1555 | if timeout != REQUEST_TIMEOUT_SEC { |
| 1556 | self.get_config_mut().timeout = timeout; |
| 1557 | self.get_logger() |
| 1558 | .debug(format!("Using timeout of {} seconds", timeout)); |
| 1559 | self.update_http_client()?; |
| 1560 | } |
| 1561 | Ok(()) |
| 1562 | } |
| 1563 | |
| 1564 | fn update_http_client(&mut self) -> Result<(), Error> { |
| 1565 | let proxy = self.get_proxy(); |
no test coverage detected