mirror of
https://github.com/TrueLayer/reqwest-middleware.git
synced 2024-12-27 20:31:32 -08:00
disable pieces currently not working on wasm32
This commit is contained in:
parent
c7ea4a6b78
commit
0c5b6e1588
1 changed files with 2 additions and 0 deletions
|
@ -247,6 +247,7 @@ impl fmt::Debug for ClientWithMiddleware {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
mod service {
|
mod service {
|
||||||
use std::{
|
use std::{
|
||||||
future::Future,
|
future::Future,
|
||||||
|
@ -422,6 +423,7 @@ impl RequestBuilder {
|
||||||
/// The timeout is applied from when the request starts connecting until the
|
/// The timeout is applied from when the request starts connecting until the
|
||||||
/// response body has finished. It affects only this request and overrides
|
/// response body has finished. It affects only this request and overrides
|
||||||
/// the timeout configured using `ClientBuilder::timeout()`.
|
/// the timeout configured using `ClientBuilder::timeout()`.
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
pub fn timeout(self, timeout: std::time::Duration) -> Self {
|
pub fn timeout(self, timeout: std::time::Duration) -> Self {
|
||||||
RequestBuilder {
|
RequestBuilder {
|
||||||
inner: self.inner.timeout(timeout),
|
inner: self.inner.timeout(timeout),
|
||||||
|
|
Loading…
Reference in a new issue