Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Reqwest #815

Merged
merged 1 commit into from
Jun 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 1 addition & 133 deletions 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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ log = "0.4"
regex = "1"
structopt = "0.3"
crates-index-diff = "7"
reqwest = "0.9"
reqwest = { version = "0.10.6", features = ["blocking"] }
semver = "0.9"
slug = "=0.1.1"
env_logger = "0.7"
Expand Down
2 changes: 1 addition & 1 deletion src/index/api.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{error::Result, utils::MetadataPackage};
use chrono::{DateTime, Utc};
use failure::err_msg;
use reqwest::{header::ACCEPT, Client};
use reqwest::{blocking::Client, header::ACCEPT};
use semver::Version;
use serde_json::Value;
use std::io::Read;
Expand Down
5 changes: 4 additions & 1 deletion src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ use failure::Error;
use log::error;
use once_cell::unsync::OnceCell;
use postgres::Connection;
use reqwest::{Client, Method, RequestBuilder};
use reqwest::{
blocking::{Client, RequestBuilder},
Method,
};
use std::panic;
use std::sync::{Arc, Mutex, MutexGuard};

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

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

Expand Down
5 changes: 4 additions & 1 deletion src/utils/pubsubhubbub.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use std::collections::HashMap;

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

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