@@ -1245,24 +1245,24 @@ impl<T: BeaconChainTypes> SyncManager<T> {
1245
1245
/// blobs.
1246
1246
fn on_range_components_response (
1247
1247
& mut self ,
1248
- id : ComponentsByRangeRequestId ,
1248
+ range_request_id : ComponentsByRangeRequestId ,
1249
1249
peer_id : PeerId ,
1250
- block_or_blob : RangeBlockComponent < T :: EthSpec > ,
1250
+ range_block_component : RangeBlockComponent < T :: EthSpec > ,
1251
1251
) {
1252
1252
if let Some ( resp) = self
1253
1253
. network
1254
- . range_block_component_response ( id , block_or_blob )
1254
+ . range_block_component_response ( range_request_id , range_block_component )
1255
1255
{
1256
1256
match resp {
1257
1257
Ok ( blocks) => {
1258
- match id . requester {
1258
+ match range_request_id . requester {
1259
1259
RangeRequestId :: RangeSync { chain_id, batch_id } => {
1260
1260
self . range_sync . blocks_by_range_response (
1261
1261
& mut self . network ,
1262
1262
peer_id,
1263
1263
chain_id,
1264
1264
batch_id,
1265
- id . id ,
1265
+ range_request_id . id ,
1266
1266
blocks,
1267
1267
) ;
1268
1268
self . update_sync_state ( ) ;
@@ -1272,7 +1272,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
1272
1272
& mut self . network ,
1273
1273
batch_id,
1274
1274
& peer_id,
1275
- id . id ,
1275
+ range_request_id . id ,
1276
1276
blocks,
1277
1277
) {
1278
1278
Ok ( ProcessResult :: SyncCompleted ) => self . update_sync_state ( ) ,
@@ -1286,20 +1286,20 @@ impl<T: BeaconChainTypes> SyncManager<T> {
1286
1286
}
1287
1287
}
1288
1288
}
1289
- Err ( _) => match id . requester {
1289
+ Err ( _) => match range_request_id . requester {
1290
1290
RangeRequestId :: RangeSync { chain_id, batch_id } => {
1291
1291
self . range_sync . inject_error (
1292
1292
& mut self . network ,
1293
1293
peer_id,
1294
1294
batch_id,
1295
1295
chain_id,
1296
- id . id ,
1296
+ range_request_id . id ,
1297
1297
) ;
1298
1298
self . update_sync_state ( ) ;
1299
1299
}
1300
1300
RangeRequestId :: BackfillSync { batch_id } => match self
1301
1301
. backfill_sync
1302
- . inject_error ( & mut self . network , batch_id, & peer_id, id . id )
1302
+ . inject_error ( & mut self . network , batch_id, & peer_id, range_request_id . id )
1303
1303
{
1304
1304
Ok ( _) => { }
1305
1305
Err ( _) => self . update_sync_state ( ) ,
0 commit comments