Skip to content

Commit 2c527b7

Browse files
authored
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
1 parent 7faf4df commit 2c527b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

protocol/mojang.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Profile {
4242
}});
4343
let req = serde_json::to_string(&req_msg)?;
4444

45-
let client = reqwest::Client::new();
45+
let client = reqwest::blocking::Client::new();
4646
let res = client.post(LOGIN_URL)
4747
.header(reqwest::header::CONTENT_TYPE, "application/json")
4848
.body(req)
@@ -70,7 +70,7 @@ impl Profile {
7070
});
7171
let req = serde_json::to_string(&req_msg)?;
7272

73-
let client = reqwest::Client::new();
73+
let client = reqwest::blocking::Client::new();
7474
let res = client.post(VALIDATE_URL)
7575
.header(reqwest::header::CONTENT_TYPE, "application/json")
7676
.body(req)
@@ -129,7 +129,7 @@ impl Profile {
129129
});
130130
let join = serde_json::to_string(&join_msg).unwrap();
131131

132-
let client = reqwest::Client::new();
132+
let client = reqwest::blocking::Client::new();
133133
let res = client.post(JOIN_URL)
134134
.header(reqwest::header::CONTENT_TYPE, "application/json")
135135
.body(join)

0 commit comments

Comments
 (0)