mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 06:44:35 +00:00
Add suggestions
This commit is contained in:
@@ -16,6 +16,7 @@ pub mod types;
|
||||
|
||||
use self::mixin::{RequestAccept, ResponseOptional};
|
||||
use self::types::{Error as ResponseError, *};
|
||||
use derivative::Derivative;
|
||||
use futures::Stream;
|
||||
use futures_util::StreamExt;
|
||||
use lighthouse_network::PeerId;
|
||||
@@ -143,19 +144,15 @@ impl Timeouts {
|
||||
|
||||
/// A wrapper around `reqwest::Client` which provides convenience methods for interfacing with a
|
||||
/// Lighthouse Beacon Node HTTP server (`http_api`).
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, Derivative)]
|
||||
#[derivative(PartialEq)]
|
||||
pub struct BeaconNodeHttpClient {
|
||||
#[derivative(PartialEq = "ignore")]
|
||||
client: reqwest::Client,
|
||||
server: SensitiveUrl,
|
||||
timeouts: Timeouts,
|
||||
}
|
||||
|
||||
impl PartialEq for BeaconNodeHttpClient {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.server == other.server && self.timeouts == other.timeouts
|
||||
}
|
||||
}
|
||||
|
||||
impl Eq for BeaconNodeHttpClient {}
|
||||
|
||||
impl fmt::Display for BeaconNodeHttpClient {
|
||||
|
||||
Reference in New Issue
Block a user