mirror of
https://github.com/TrueLayer/reqwest-middleware.git
synced 2024-12-26 02:46:30 +00:00
fix: remove tower service if wasm32
Signed-off-by: Gustavo Inacio <incio.gusta@gmail.com>
This commit is contained in:
parent
88dbfe67fb
commit
f6c7097267
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 {
|
||||
use std::{
|
||||
future::Future,
|
||||
|
@ -422,6 +423,7 @@ impl RequestBuilder {
|
|||
/// The timeout is applied from when the request starts connecting until the
|
||||
/// response body has finished. It affects only this request and overrides
|
||||
/// the timeout configured using `ClientBuilder::timeout()`.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub fn timeout(self, timeout: std::time::Duration) -> Self {
|
||||
RequestBuilder {
|
||||
inner: self.inner.timeout(timeout),
|
||||
|
|
Loading…
Reference in a new issue