File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ pub struct BlockExtractorConfig {
1919}
2020
2121impl 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 ( )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ mod block_data;
1515pub use block_data:: { Blobs , BlockExtractor } ;
1616
1717mod builder;
18- pub use builder:: BlockExtractorBuilder ;
18+ pub use builder:: { BlockExtractorBuilder , BuilderError as BlockExtractorBuilderError } ;
1919
2020mod config;
2121pub use config:: BlockExtractorConfig ;
You can’t perform that action at this time.
0 commit comments