Store a fatal encoding error so the next [`BatchPipeline::step`] reports it.
(&mut self, error: StepError, operation: &'static str)
| 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 | /// |