mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-24 00:08:27 +00:00
Remove unused method in HandlerNetworkContext (#3299)
## Issue Addressed N/A ## Proposed Changes Removed unused method in `HandlerNetworkContext`.
This commit is contained in:
@@ -409,22 +409,6 @@ impl<T: EthSpec> HandlerNetworkContext<T> {
|
|||||||
response,
|
response,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sends an error response to the network task.
|
|
||||||
pub fn _send_error_response(
|
|
||||||
&mut self,
|
|
||||||
peer_id: PeerId,
|
|
||||||
id: PeerRequestId,
|
|
||||||
error: RPCResponseErrorCode,
|
|
||||||
reason: String,
|
|
||||||
) {
|
|
||||||
self.inform_network(NetworkMessage::SendErrorResponse {
|
|
||||||
peer_id,
|
|
||||||
error,
|
|
||||||
id,
|
|
||||||
reason,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn timestamp_now() -> Duration {
|
fn timestamp_now() -> Duration {
|
||||||
|
|||||||
Reference in New Issue
Block a user