Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PatStiles committed Sep 15, 2023
1 parent d233e7c commit 9d651b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mev-rs/src/blinded_block_relayer/api/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl BlindedBlockRelayer for Client {
signed_submission: &SignedBidSubmission,
with_cancellations: bool,
) -> Result<(), Error> {
let path = format!("/relay/v1/builder/blocks");
let path = "/relay/v1/builder/blocks".to_string();
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 {
Expand Down
2 changes: 1 addition & 1 deletion mev-rs/src/blinded_block_relayer/api/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn handle_submit_bid<R: BlindedBlockRelayer>(
Json(signed_bid_submission): Json<SignedBidSubmission>,
) -> Result<(), Error> {
tracing::info!("handling bid submission");
let with_cancellations = if with_cancellations == "1" { true } else { false };
let with_cancellations = with_cancellations == "1";
relayer.submit_bid(&signed_bid_submission, with_cancellations).await
}

Expand Down

0 comments on commit 9d651b4

Please sign in to comment.