client/network: Remove original_request in block request events (#7369)

The `original_request` field of each `block_request::Event` variant is
not used. With that in mind, this commit removes the field.
This commit is contained in:
Max Inden
2020-10-21 20:06:35 +02:00
committed by GitHub
parent ed1d0fa815
commit 96e939f42e
2 changed files with 1 additions and 10 deletions
+1 -1
View File
@@ -429,7 +429,7 @@ impl<B: BlockT, H: ExHashT> NetworkBehaviourEventProcess<block_requests::Event<B
result: Ok(total_handling_time),
});
},
block_requests::Event::Response { peer, original_request: _, response, request_duration } => {
block_requests::Event::Response { peer, response, request_duration } => {
self.events.push_back(BehaviourOut::OpaqueRequestFinished {
peer: peer.clone(),
protocol: self.block_requests.protocol_name().to_owned(),