diff --git a/crates/stages/stages/src/stages/s3/downloader/meta.rs b/crates/stages/stages/src/stages/s3/downloader/meta.rs index 7ff4213fff..dbe2a8a55a 100644 --- a/crates/stages/stages/src/stages/s3/downloader/meta.rs +++ b/crates/stages/stages/src/stages/s3/downloader/meta.rs @@ -12,7 +12,7 @@ use tracing::info; pub struct Metadata { /// Total file size pub total_size: usize, - /// Total file size + /// Total downloaded bytes pub downloaded: usize, /// Download chunk size. Default 150MB. pub chunk_size: usize, @@ -141,7 +141,7 @@ impl MetadataBuilder { self } - /// Returns a [Metadata] if + /// Returns a [Metadata] if total size is valid pub fn build(&self) -> Result { match &self.total_size { Some(total_size) if *total_size > 0 => { @@ -173,7 +173,7 @@ impl MetadataBuilder { struct MetadataFile { /// Total file size total_size: usize, - /// Total file size + /// Total downloaded bytes downloaded: usize, /// Download chunk size. Default 150MB. chunk_size: usize, diff --git a/crates/storage/errors/src/writer.rs b/crates/storage/errors/src/writer.rs index 3e060d7005..52a5ba06e5 100644 --- a/crates/storage/errors/src/writer.rs +++ b/crates/storage/errors/src/writer.rs @@ -2,7 +2,6 @@ use crate::db::DatabaseError; use reth_static_file_types::StaticFileSegment; /// `UnifiedStorageWriter` related errors -/// `StorageWriter` related errors #[derive(Clone, Debug, derive_more::Display, PartialEq, Eq, derive_more::Error)] pub enum UnifiedStorageWriterError { /// Database writer is missing