Skip to content

Commit

Permalink
Remove timeout for worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Antony1060 committed Mar 2, 2024
1 parent 8461cd2 commit 71abf3b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions shared/src/models/eip155/url.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(not(target_arch = "wasm32"))]
use std::time::Duration;

use data_url::{DataUrl, DataUrlError};
Expand Down Expand Up @@ -129,10 +130,12 @@ impl URLUnparsed {
);
}

let client = reqwest::Client::builder()
.default_headers(client_headers)
.timeout(Duration::from_secs(4))
.build()?;
let builder = reqwest::Client::builder().default_headers(client_headers);

#[cfg(not(target_arch = "wasm32"))]
let builder = builder.timeout(Duration::from_secs(4));

let client = builder.build()?;

let res = client.get(&url).send().await?;

Expand Down

0 comments on commit 71abf3b

Please sign in to comment.