Skip to content

Commit

Permalink
fix: trillium-client 0.3.0 breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cailloumajor committed Feb 6, 2023
1 parent 7bb77da commit 57b7670
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bin/healthcheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() -> Result<()> {
args.common.listen_address.port()
);

let mut resp = block_on(ClientConn::get(url.as_str()).execute())?;
let mut resp = block_on(async { ClientConn::get(url.as_str()).await })?;

let status = resp.status().context("missing status code")?;

Expand Down
6 changes: 3 additions & 3 deletions src/centrifugo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ impl Client {
let mut conn = self
.conn()
.with_json_body(&json)
.expect("serialization error");

conn.send().await.context_during("request send")?;
.expect("serialization error")
.await
.context_during("request send")?;

let status_code = conn.status().expect("missing status code");
if !status_code.is_success() {
Expand Down

0 comments on commit 57b7670

Please sign in to comment.