Skip to content

Commit

Permalink
refactor: Rename Endpoint::new to _new
Browse files Browse the repository at this point in the history
This is in preparation for adding a public `new` constructor.
  • Loading branch information
Chris Connelly committed Aug 24, 2021
1 parent feba056 commit 8b58688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl<I: ConnId> QuicP2p<I> {
quinn_endpoint.local_addr()?
);

let endpoint = Endpoint::new(
let endpoint = Endpoint::_new(
quinn_endpoint,
quinn_incoming,
bootstrap_nodes,
Expand Down
2 changes: 1 addition & 1 deletion src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl<I: ConnId> Endpoint<I> {
Ok(endpoint)
}

pub(crate) async fn new(
pub(crate) async fn _new(
quic_endpoint: quinn::Endpoint,
quic_incoming: quinn::Incoming,
bootstrap_nodes: Vec<SocketAddr>,
Expand Down

0 comments on commit 8b58688

Please sign in to comment.