Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
PatStiles committed Sep 14, 2023
1 parent dc0c299 commit d233e7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mev-rs/src/blinded_block_relayer/api/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ impl BlindedBlockRelayer for Client {
let path = format!("/relay/v1/builder/blocks");
let target = self.api.endpoint.join(&path).map_err(ApiError::from)?;
let mut request = self.api.http.post(target).json(signed_submission);
if with_cancellations { request = request.query(&[("cancellations", "1")]) };
if with_cancellations {
request = request.query(&[("cancellations", "1")])
};
let response = request.send().await.map_err(ApiError::from)?;
api_error_or_ok(response).await.map_err(From::from)
}
Expand Down

0 comments on commit d233e7c

Please sign in to comment.