diff --git a/node/storage/src/log_store/load_chunk/chunk_data.rs b/node/storage/src/log_store/load_chunk/chunk_data.rs index e816d4d..86b22eb 100644 --- a/node/storage/src/log_store/load_chunk/chunk_data.rs +++ b/node/storage/src/log_store/load_chunk/chunk_data.rs @@ -128,6 +128,12 @@ impl DataRange for Subtree { } } +impl Default for EntryBatchData { + fn default() -> Self { + Self::new() + } +} + impl EntryBatchData { pub fn new() -> Self { EntryBatchData::Incomplete(IncompleteData { diff --git a/node/storage/src/log_store/load_chunk/mod.rs b/node/storage/src/log_store/load_chunk/mod.rs index 0a68dbc..9d60d25 100644 --- a/node/storage/src/log_store/load_chunk/mod.rs +++ b/node/storage/src/log_store/load_chunk/mod.rs @@ -20,7 +20,7 @@ use zgs_spec::{ }; use super::SealAnswer; -use chunk_data::EntryBatchData; +pub use chunk_data::EntryBatchData; use seal::SealInfo; #[derive(Debug, Encode, Decode, Deserialize, Serialize)] diff --git a/node/storage/src/log_store/mod.rs b/node/storage/src/log_store/mod.rs index c51c2e0..b143a4c 100644 --- a/node/storage/src/log_store/mod.rs +++ b/node/storage/src/log_store/mod.rs @@ -14,7 +14,7 @@ use self::tx_store::{BlockHashAndSubmissionIndex, TxStatus}; pub mod config; mod flow_store; -mod load_chunk; +pub mod load_chunk; pub mod log_manager; mod metrics; mod seal_task_manager;