fix: do not expect that all http requests are valid reqwest requests
This commit is contained in:
parent
7aa70e2030
commit
3ce3d13378
5 changed files with 28 additions and 30 deletions
|
@ -66,8 +66,7 @@ impl Service {
|
|||
})?
|
||||
.map(|body| body.freeze());
|
||||
|
||||
let reqwest_request = reqwest::Request::try_from(http_request)
|
||||
.expect("all http requests are valid reqwest requests");
|
||||
let reqwest_request = reqwest::Request::try_from(http_request)?;
|
||||
|
||||
// TODO: we could keep this very short and let expo backoff do it's thing...
|
||||
//*reqwest_request.timeout_mut() = Some(Duration::from_secs(5));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue