Fix pending payload cache test lint

This commit is contained in:
dapplion
2026-04-30 13:40:39 +02:00
parent 0b7397eb4e
commit 23d5be1a0e
2 changed files with 3 additions and 3 deletions

View File

@@ -638,7 +638,7 @@ mod data_availability_checker_tests {
use tempfile::{TempDir, tempdir}; use tempfile::{TempDir, tempdir};
use types::{ use types::{
ExecutionPayloadEnvelope, ExecutionPayloadGloas, ExecutionRequests, ForkName, ExecutionPayloadEnvelope, ExecutionPayloadGloas, ExecutionRequests, ForkName,
MinimalEthSpec, SignedExecutionPayloadEnvelope, Slot, MinimalEthSpec, SignedExecutionPayloadEnvelope,
}; };
type E = MinimalEthSpec; type E = MinimalEthSpec;
@@ -783,7 +783,7 @@ mod data_availability_checker_tests {
init_block(&cache, &harness.spec, NumBlobs::Number(1), RNG_SEED); init_block(&cache, &harness.spec, NumBlobs::Number(1), RNG_SEED);
let result = cache let result = cache
.put_rpc_custody_columns(block_root, bid, data_columns) .put_rpc_custody_columns(block_root, bid.clone(), data_columns)
.expect("should put columns"); .expect("should put columns");
assert!(matches!(result, Availability::MissingComponents(_))); assert!(matches!(result, Availability::MissingComponents(_)));

View File

@@ -234,7 +234,7 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
// Sync handles these results // Sync handles these results
self.send_sync_message(SyncMessage::BlockComponentProcessed { self.send_sync_message(SyncMessage::BlockComponentProcessed {
process_type, process_type,
result: result.map_err(Into::into).into(), result: result.into(),
}); });
// Drop the handle to remove the entry from the cache // Drop the handle to remove the entry from the cache