|
@@ -144,7 +144,7 @@ fn auction_details(auction: &Auction) -> Auction {
|
|
|
return updated_auction;
|
|
|
}
|
|
|
|
|
|
- let client = reqwest::Client::builder()
|
|
|
+ let client = reqwest::blocking::Client::builder()
|
|
|
// .timeout(Some(core::time::Duration::from_secs(10)))
|
|
|
.build()
|
|
|
.unwrap();
|
|
@@ -152,9 +152,9 @@ fn auction_details(auction: &Auction) -> Auction {
|
|
|
|
|
|
match client.get(&auction.url).send() {
|
|
|
Ok(mut resp) => {
|
|
|
- if !resp.status().is_success() {
|
|
|
- println!("ERR {:?}", resp.text());
|
|
|
- }
|
|
|
+ // if !resp.status().is_success() {
|
|
|
+ // println!("ERR {:?}", &resp.text());
|
|
|
+ // }
|
|
|
|
|
|
let text = resp.text().unwrap_or("".to_string());
|
|
|
|
|
@@ -206,7 +206,7 @@ fn auctions_from_url(url: &str) -> HashMap<String, Auction> {
|
|
|
let mut auctions = HashMap::new();
|
|
|
// dbg!(&url);
|
|
|
|
|
|
- let client = reqwest::Client::builder()
|
|
|
+ let client = reqwest::blocking::Client::builder()
|
|
|
// .timeout(Some(core::time::Duration::from_secs(8)))
|
|
|
.build()
|
|
|
.unwrap();
|