chore: expose chunk data (#270)

* chore: expose chunk data
This commit is contained in:
MiniFrenchBread 2024-11-15 08:26:34 +08:00 committed by GitHub
parent 4b48d25fb4
commit 4566eadb3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -128,6 +128,12 @@ impl DataRange for Subtree {
} }
} }
impl Default for EntryBatchData {
fn default() -> Self {
Self::new()
}
}
impl EntryBatchData { impl EntryBatchData {
pub fn new() -> Self { pub fn new() -> Self {
EntryBatchData::Incomplete(IncompleteData { EntryBatchData::Incomplete(IncompleteData {

View File

@ -20,7 +20,7 @@ use zgs_spec::{
}; };
use super::SealAnswer; use super::SealAnswer;
use chunk_data::EntryBatchData; pub use chunk_data::EntryBatchData;
use seal::SealInfo; use seal::SealInfo;
#[derive(Debug, Encode, Decode, Deserialize, Serialize)] #[derive(Debug, Encode, Decode, Deserialize, Serialize)]

View File

@ -14,7 +14,7 @@ use self::tx_store::{BlockHashAndSubmissionIndex, TxStatus};
pub mod config; pub mod config;
mod flow_store; mod flow_store;
mod load_chunk; pub mod load_chunk;
pub mod log_manager; pub mod log_manager;
mod metrics; mod metrics;
mod seal_task_manager; mod seal_task_manager;