From 0cc9b2dfb8425c3fa1bbbb278ea8941c1eb179b6 Mon Sep 17 00:00:00 2001 From: fbrv Date: Mon, 30 Sep 2024 14:09:55 +0100 Subject: [PATCH] remove clones --- crates/pbs/src/mev_boost/get_header.rs | 2 +- crates/pbs/src/mev_boost/register_validator.rs | 2 +- crates/pbs/src/mev_boost/status.rs | 2 +- crates/pbs/src/mev_boost/submit_block.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/pbs/src/mev_boost/get_header.rs b/crates/pbs/src/mev_boost/get_header.rs index 973749e..ee5fa33 100644 --- a/crates/pbs/src/mev_boost/get_header.rs +++ b/crates/pbs/src/mev_boost/get_header.rs @@ -220,7 +220,7 @@ async fn send_one_get_header( let start_request = Instant::now(); let res = match relay .client - .get(req_config.url.clone()) + .get(req_config.url) .timeout(Duration::from_millis(req_config.timeout_ms)) .headers(req_config.headers) .send() diff --git a/crates/pbs/src/mev_boost/register_validator.rs b/crates/pbs/src/mev_boost/register_validator.rs index 7b7e185..5fcfc99 100644 --- a/crates/pbs/src/mev_boost/register_validator.rs +++ b/crates/pbs/src/mev_boost/register_validator.rs @@ -62,7 +62,7 @@ async fn send_register_validator( let start_request = Instant::now(); let res = match relay .client - .post(url.clone()) + .post(url) .timeout(Duration::from_millis(timeout_ms)) .headers(headers) .json(®istrations) diff --git a/crates/pbs/src/mev_boost/status.rs b/crates/pbs/src/mev_boost/status.rs index 8b0624c..514ef86 100644 --- a/crates/pbs/src/mev_boost/status.rs +++ b/crates/pbs/src/mev_boost/status.rs @@ -52,7 +52,7 @@ async fn send_relay_check(relay: &RelayClient, headers: HeaderMap) -> Result<(), let start_request = Instant::now(); let res = match relay .client - .get(url.clone()) + .get(url) .timeout(Duration::from_secs(30)) .headers(headers) .send() diff --git a/crates/pbs/src/mev_boost/submit_block.rs b/crates/pbs/src/mev_boost/submit_block.rs index a40d599..e430ca3 100644 --- a/crates/pbs/src/mev_boost/submit_block.rs +++ b/crates/pbs/src/mev_boost/submit_block.rs @@ -65,7 +65,7 @@ async fn send_submit_block( let start_request = Instant::now(); let res = match relay .client - .post(url.clone()) + .post(url) .timeout(Duration::from_millis(timeout_ms)) .headers(headers) .json(&signed_blinded_block)