Skip to content

Commit

Permalink
remove clones
Browse files Browse the repository at this point in the history
  • Loading branch information
fbrv committed Sep 30, 2024
1 parent 0c89a74 commit 0cc9b2d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/pbs/src/mev_boost/get_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion crates/pbs/src/mev_boost/register_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(&registrations)
Expand Down
2 changes: 1 addition & 1 deletion crates/pbs/src/mev_boost/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion crates/pbs/src/mev_boost/submit_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0cc9b2d

Please sign in to comment.