MCPcopy Create free account
hub / github.com/base/base / defer_step_error

Method defer_step_error

crates/batcher/encoder/src/encoder.rs:163–178  ·  view source on GitHub ↗

Store a fatal encoding error so the next [`BatchPipeline::step`] reports it.

(&mut self, error: StepError, operation: &'static str)

Source from the content-addressed store, hash-verified

161
162 /// Store a fatal encoding error so the next [`BatchPipeline::step`] reports it.
163 fn defer_step_error(&mut self, error: StepError, operation: &'static str) {
164 warn!(
165 error = %error,
166 operation = %operation,
167 "deferred fatal encoder error from non-fallible pipeline method"
168 );
169 if self.deferred_step_error.is_none() {
170 self.deferred_step_error = Some(error);
171 } else {
172 warn!(
173 dropped_error = %error,
174 operation = %operation,
175 "dropping additional deferred encoder error; earlier error takes precedence"
176 );
177 }
178 }
179
180 /// Opens a channel for the next queued block.
181 ///

Callers 1

advance_l1_headMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected