mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 21:08:32 +00:00
Remove generic E from RequestId (#6462)
* remove Ethspec from types where it's possible to do so * remove generic E from RequestType
This commit is contained in:
@@ -80,7 +80,7 @@ pub enum NetworkEvent<E: EthSpec> {
|
||||
/// Identifier of the request. All responses to this request must use this id.
|
||||
id: PeerRequestId,
|
||||
/// Request the peer sent.
|
||||
request: rpc::Request<E>,
|
||||
request: rpc::Request,
|
||||
},
|
||||
ResponseReceived {
|
||||
/// Peer that sent the response.
|
||||
@@ -965,7 +965,7 @@ impl<E: EthSpec> Network<E> {
|
||||
&mut self,
|
||||
peer_id: PeerId,
|
||||
request_id: AppRequestId,
|
||||
request: RequestType<E>,
|
||||
request: RequestType,
|
||||
) -> Result<(), (AppRequestId, RPCError)> {
|
||||
// Check if the peer is connected before sending an RPC request
|
||||
if !self.swarm.is_connected(&peer_id) {
|
||||
@@ -1178,7 +1178,7 @@ impl<E: EthSpec> Network<E> {
|
||||
/// Sends a METADATA response to a peer.
|
||||
fn send_meta_data_response(
|
||||
&mut self,
|
||||
_req: MetadataRequest<E>,
|
||||
_req: MetadataRequest,
|
||||
id: PeerRequestId,
|
||||
request_id: rpc::RequestId,
|
||||
peer_id: PeerId,
|
||||
|
||||
Reference in New Issue
Block a user