We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ad83a commit f0bbf49Copy full SHA for f0bbf49
crates/services/gas_price_service/src/lib.rs
@@ -187,13 +187,11 @@ where
187
should_continue = false;
188
}
189
da_block_costs = self.da_block_costs_provider.recv() => {
190
- self.da_block_costs = match da_block_costs {
191
- Ok(da_block_costs) => Some(da_block_costs),
192
- Err(err) => {
193
- tracing::error!("Failed to get da block costs: {:?}", err);
194
- None
195
- }
196
- };
+ if da_block_costs.is_err() {
+ tracing::error!("Failed to get da block costs: {:?}", da_block_costs.err());
+ } else {
+ self.da_block_costs = Some(da_block_costs?);
+ }
197
should_continue = true;
198
199
l2_block = self.l2_block_source.get_l2_block() => {
0 commit comments