Skip to content

Commit

Permalink
fix(cli): fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
pashinov committed Jun 21, 2024
1 parent 0efbbd5 commit 79b66c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cli/src/node/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ async fn download_key_blocks(
Ok(res) => {
let (handle, data) = res.split();

match BlockProofStuff::deserialize(block_id, &data.data, false) {
match BlockProofStuff::deserialize(&block_id, &data.data, false) {
Ok(proof) => {
handle.accept();
return proof.with_archive_data(&data.data);
return proof.with_archive_data(data.data.into());
},
Err(e) => {
tracing::error!(%block_id, "failed to deserialize block proof: {e}");
Expand Down Expand Up @@ -562,7 +562,7 @@ async fn download_block_with_state(
is_link,
} => {
let block = match BlockStuff::deserialize_checked(
block_id,
&block_id,
&block_data,
) {
Ok(block) => WithArchiveData::new(block, block_data),
Expand All @@ -574,7 +574,7 @@ async fn download_block_with_state(
};

let proof = match BlockProofStuff::deserialize(
block_id,
&block_id,
&proof_data,
is_link,
) {
Expand Down
1 change: 0 additions & 1 deletion cli/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ use tycho_rpc::{RpcConfig, RpcState};
use tycho_storage::Storage;

use self::config::{MetricsConfig, NodeConfig, NodeKeys};
use crate::node::boot::cold_boot;
#[cfg(feature = "jemalloc")]
use crate::util::alloc::spawn_allocator_metrics_loop;
use crate::util::error::ResultExt;
Expand Down

0 comments on commit 79b66c6

Please sign in to comment.