Przeglądaj źródła

update and up timeout

Johann Woelper 4 lat temu
rodzic
commit
606373e5ca
3 zmienionych plików z 1408 dodań i 1069 usunięć
  1. 410 475
      Cargo.lock
  2. 996 592
      accounts.json
  3. 2 2
      src/query.rs

Plik diff jest za duży
+ 410 - 475
Cargo.lock


Plik diff jest za duży
+ 996 - 592
accounts.json


+ 2 - 2
src/query.rs

@@ -142,7 +142,7 @@ fn auction_details(auction: &Auction) -> Auction {
 
 
     let client = reqwest::Client::builder()
-        .timeout(Some(core::time::Duration::from_secs(2)))
+        .timeout(Some(core::time::Duration::from_secs(8)))
         .build()
         .unwrap();
 
@@ -201,7 +201,7 @@ fn auctions_from_url(url: &str) -> HashMap<String, Auction> {
     // dbg!(&url);
 
     let client = reqwest::Client::builder()
-        .timeout(Some(core::time::Duration::from_secs(2)))
+        .timeout(Some(core::time::Duration::from_secs(8)))
         .build()
         .unwrap();