diff --git a/node/src/indexer.rs b/node/src/indexer.rs index ab38c0843..02b339fc0 100644 --- a/node/src/indexer.rs +++ b/node/src/indexer.rs @@ -137,7 +137,7 @@ async fn handle_block( time_added: Instant::now(), }); crate::metrics::NUM_SIGN_REQUESTS - .with_label_values(&[&ctx.gcp_service.account_id.as_str()]) + .with_label_values(&[ctx.gcp_service.account_id.as_str()]) .inc(); drop(queue); } diff --git a/node/src/rpc_client.rs b/node/src/rpc_client.rs index 6340712bf..c7a8409fe 100644 --- a/node/src/rpc_client.rs +++ b/node/src/rpc_client.rs @@ -35,7 +35,7 @@ pub async fn vote_for_public_key( .await?; match result.status() { - FinalExecutionStatus::SuccessValue(value) => Ok(serde_json::from_slice(&value)?), + FinalExecutionStatus::SuccessValue(value) => Ok(serde_json::from_slice(value)?), status => anyhow::bail!("unexpected status: {:?}", status), } } @@ -57,7 +57,7 @@ pub async fn vote_reshared( .await?; match result.status() { - FinalExecutionStatus::SuccessValue(value) => Ok(serde_json::from_slice(&value)?), + FinalExecutionStatus::SuccessValue(value) => Ok(serde_json::from_slice(value)?), status => anyhow::bail!("unexpected status: {:?}", status), } }