Skip to content

Commit

Permalink
refactor!: Remove Endpoint::bootstrap_nodes
Browse files Browse the repository at this point in the history
This is no longer used.

BREAKING CHANGE: The `Endpoint::bootstrap_nodes` method has been
removed since it is no longer set.
  • Loading branch information
Chris Connelly committed Aug 26, 2021
1 parent 8e5b19f commit 63a09ea
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ pub struct Endpoint<I: ConnId> {
quic_endpoint: quinn::Endpoint,
message_tx: MpscSender<(SocketAddr, Bytes)>,
disconnection_tx: MpscSender<SocketAddr>,
bootstrap_nodes: Vec<SocketAddr>,
config: InternalConfig,
termination_tx: Sender<()>,
connection_pool: ConnectionPool<I>,
Expand Down Expand Up @@ -160,7 +159,6 @@ impl<I: ConnId> Endpoint<I> {
quic_endpoint,
message_tx: message_tx.clone(),
disconnection_tx: disconnection_tx.clone(),
bootstrap_nodes: Default::default(),
config,
termination_tx,
connection_pool: connection_pool.clone(),
Expand Down Expand Up @@ -240,7 +238,6 @@ impl<I: ConnId> Endpoint<I> {
quic_endpoint,
message_tx,
disconnection_tx,
bootstrap_nodes: Default::default(),
config,
termination_tx,
connection_pool: ConnectionPool::new(),
Expand Down Expand Up @@ -444,13 +441,6 @@ impl<I: ConnId> Endpoint<I> {
self.quic_endpoint.close(0_u32.into(), b"")
}

/// Returns the list of boostrap nodes that the endpoint will try bootstrapping to.
/// This is the combined list of contacts from the Hard Coded contacts in the config
/// and the bootstrap cache (if enabled)
pub fn bootstrap_nodes(&self) -> &[SocketAddr] {
&self.bootstrap_nodes
}

/// Get a connection from the pool, or create one, for the given `addr`.
pub(crate) async fn get_or_connect_to(
&self,
Expand Down

0 comments on commit 63a09ea

Please sign in to comment.