Skip to content

Commit 20d9794

Browse files
committed
renames
1 parent 11f9030 commit 20d9794

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

beacon_node/network/src/sync/manager.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,24 +1245,24 @@ impl<T: BeaconChainTypes> SyncManager<T> {
12451245
/// blobs.
12461246
fn on_range_components_response(
12471247
&mut self,
1248-
id: ComponentsByRangeRequestId,
1248+
range_request_id: ComponentsByRangeRequestId,
12491249
peer_id: PeerId,
1250-
block_or_blob: RangeBlockComponent<T::EthSpec>,
1250+
range_block_component: RangeBlockComponent<T::EthSpec>,
12511251
) {
12521252
if let Some(resp) = self
12531253
.network
1254-
.range_block_component_response(id, block_or_blob)
1254+
.range_block_component_response(range_request_id, range_block_component)
12551255
{
12561256
match resp {
12571257
Ok(blocks) => {
1258-
match id.requester {
1258+
match range_request_id.requester {
12591259
RangeRequestId::RangeSync { chain_id, batch_id } => {
12601260
self.range_sync.blocks_by_range_response(
12611261
&mut self.network,
12621262
peer_id,
12631263
chain_id,
12641264
batch_id,
1265-
id.id,
1265+
range_request_id.id,
12661266
blocks,
12671267
);
12681268
self.update_sync_state();
@@ -1272,7 +1272,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
12721272
&mut self.network,
12731273
batch_id,
12741274
&peer_id,
1275-
id.id,
1275+
range_request_id.id,
12761276
blocks,
12771277
) {
12781278
Ok(ProcessResult::SyncCompleted) => self.update_sync_state(),
@@ -1286,20 +1286,20 @@ impl<T: BeaconChainTypes> SyncManager<T> {
12861286
}
12871287
}
12881288
}
1289-
Err(_) => match id.requester {
1289+
Err(_) => match range_request_id.requester {
12901290
RangeRequestId::RangeSync { chain_id, batch_id } => {
12911291
self.range_sync.inject_error(
12921292
&mut self.network,
12931293
peer_id,
12941294
batch_id,
12951295
chain_id,
1296-
id.id,
1296+
range_request_id.id,
12971297
);
12981298
self.update_sync_state();
12991299
}
13001300
RangeRequestId::BackfillSync { batch_id } => match self
13011301
.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)
13031303
{
13041304
Ok(_) => {}
13051305
Err(_) => self.update_sync_state(),

0 commit comments

Comments
 (0)