Skip to content

Commit

Permalink
fix(derive):use signal value updated with system config. (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoujia6139 authored Nov 4, 2024
1 parent c644ac6 commit 0a672bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/derive/src/pipeline/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ where
/// The `signal` is contains the signal variant with any necessary parameters.
async fn signal(&mut self, signal: Signal) -> PipelineResult<()> {
match signal {
s @ Signal::Reset(ResetSignal { l2_safe_head, .. }) |
s @ Signal::Activation(ActivationSignal { l2_safe_head, .. }) => {
mut s @ Signal::Reset(ResetSignal { l2_safe_head, .. }) |
mut s @ Signal::Activation(ActivationSignal { l2_safe_head, .. }) => {
let system_config = self
.l2_chain_provider
.system_config_by_number(
Expand All @@ -102,7 +102,7 @@ where
)
.await
.map_err(|e| PipelineError::Provider(e.to_string()).temp())?;
s.with_system_config(system_config);
s = s.with_system_config(system_config);
match self.attributes.signal(s).await {
Ok(()) => trace!(target: "pipeline", "Stages reset"),
Err(err) => {
Expand Down

0 comments on commit 0a672bd

Please sign in to comment.