Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Oct 18, 2024
1 parent dbbf640 commit 55d9cc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/derive/src/stages/batch/batch_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ where
P: NextBatchProvider + OriginAdvancer + OriginProvider + SignalReceiver + Debug,
{
/// Create a new [BatchValidator] stage.
pub fn new(cfg: Arc<RollupConfig>, prev: P) -> Self {
pub const fn new(cfg: Arc<RollupConfig>, prev: P) -> Self {
Self { cfg, prev, origin: None, l1_blocks: Vec::new() }
}

Expand Down Expand Up @@ -485,7 +485,7 @@ mod test {
async fn test_batch_validator_origin_behind_drain_prev() {
let cfg = Arc::new(RollupConfig::default());
let mut mock = TestBatchQueueProvider::new(
(0..5).into_iter().map(|_| Ok(Batch::Single(SingleBatch::default()))).collect(),
(0..5).map(|_| Ok(Batch::Single(SingleBatch::default()))).collect(),
);
mock.origin = Some(BlockInfo::default());
let mut bv = BatchValidator::new(cfg, mock);
Expand Down
1 change: 1 addition & 0 deletions crates/derive/src/stages/batch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub trait NextBatchProvider {
/// complete and the batch has been consumed, an [PipelineError::Eof] error is returned.
///
/// [ChannelReader]: crate::stages::ChannelReader
/// [PipelineError::Eof]: crate::errors::PipelineError::Eof
async fn next_batch(
&mut self,
parent: L2BlockInfo,
Expand Down

0 comments on commit 55d9cc3

Please sign in to comment.