Update to reqwest 0.10.0. Closes #259

* Bump reqwest from 0.9.22 to 0.10.0

* Use blocking reqwest API instead of futures, for now
This commit is contained in:
iceiix 2020-01-05 10:38:21 -08:00 committed by GitHub
parent a833ef7bf5
commit 9077c22304
1 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ impl Profile {
}});
let req = serde_json::to_string(&req_msg)?;
let client = reqwest::Client::new();
let client = reqwest::blocking::Client::new();
let res = client.post(LOGIN_URL)
.header(reqwest::header::CONTENT_TYPE, "application/json")
.body(req)
@ -70,7 +70,7 @@ impl Profile {
});
let req = serde_json::to_string(&req_msg)?;
let client = reqwest::Client::new();
let client = reqwest::blocking::Client::new();
let res = client.post(VALIDATE_URL)
.header(reqwest::header::CONTENT_TYPE, "application/json")
.body(req)
@ -129,7 +129,7 @@ impl Profile {
});
let join = serde_json::to_string(&join_msg).unwrap();
let client = reqwest::Client::new();
let client = reqwest::blocking::Client::new();
let res = client.post(JOIN_URL)
.header(reqwest::header::CONTENT_TYPE, "application/json")
.body(join)