Skip to content

Commit c3faf66

Browse files
committed
fix: couple blobber interface issues
1 parent 41fcc73 commit c3faf66

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

crates/blobber/src/config.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ pub struct BlockExtractorConfig {
1919
}
2020

2121
impl BlockExtractorConfig {
22+
/// Create a new `BlockExtractorConfig` with default values.
23+
pub fn new(blob_explorer_url: Cow<'static, str>) -> Self {
24+
Self { blob_explorer_url, cl_url: None, pylon_url: None }
25+
}
26+
2227
/// Create a new `BlockExtractorConfig` with the provided CL URL, Pylon URL,
2328
pub fn cl_url(&self) -> Option<&str> {
2429
self.cl_url.as_deref()

crates/blobber/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mod block_data;
1515
pub use block_data::{Blobs, BlockExtractor};
1616

1717
mod builder;
18-
pub use builder::BlockExtractorBuilder;
18+
pub use builder::{BlockExtractorBuilder, BuilderError as BlockExtractorBuilderError};
1919

2020
mod config;
2121
pub use config::BlockExtractorConfig;

0 commit comments

Comments
 (0)