Skip to content

Commit

Permalink
Revert "Updated Reqwest"
Browse files Browse the repository at this point in the history
This reverts commit 3785c7a.
  • Loading branch information
pietroalbini committed Jun 6, 2020
1 parent 3785c7a commit 38ce89b
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 12 deletions.
134 changes: 133 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -13,7 +13,7 @@ log = "0.4"
regex = "1"
structopt = "0.3"
crates-index-diff = "7"
reqwest = { version = "0.10.6", features = ["blocking"] }
reqwest = "0.9"
semver = "0.9"
slug = "=0.1.1"
env_logger = "0.7"
Expand Down
2 changes: 1 addition & 1 deletion src/index/api.rs
@@ -1,7 +1,7 @@
use crate::{error::Result, utils::MetadataPackage};
use chrono::{DateTime, Utc};
use failure::err_msg;
use reqwest::{blocking::Client, header::ACCEPT};
use reqwest::{header::ACCEPT, Client};
use semver::Version;
use serde_json::Value;
use std::io::Read;
Expand Down
5 changes: 1 addition & 4 deletions src/test/mod.rs
Expand Up @@ -6,10 +6,7 @@ use failure::Error;
use log::error;
use once_cell::unsync::OnceCell;
use postgres::Connection;
use reqwest::{
blocking::{Client, RequestBuilder},
Method,
};
use reqwest::{Client, Method, RequestBuilder};
use std::panic;
use std::sync::{Arc, Mutex, MutexGuard};

Expand Down
2 changes: 1 addition & 1 deletion src/utils/github_updater.rs
Expand Up @@ -78,7 +78,7 @@ fn get_github_fields(path: &str) -> Result<GitHubFields> {

let body = {
use reqwest::header::USER_AGENT;
use reqwest::{blocking::Client, StatusCode};
use reqwest::{Client, StatusCode};
use std::env;
use std::io::Read;

Expand Down
5 changes: 1 addition & 4 deletions src/utils/pubsubhubbub.rs
@@ -1,9 +1,6 @@
use std::collections::HashMap;

use reqwest::{
blocking::{Client, Response},
Result,
};
use reqwest::*;

fn ping_hub(url: &str) -> Result<Response> {
let mut params = HashMap::with_capacity(2);
Expand Down

0 comments on commit 38ce89b

Please sign in to comment.