Skip to content

Commit

Permalink
Make l4 module pub to expose Connect
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhavck authored and johnhurt committed Aug 23, 2024
1 parent d425379 commit 91702bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .bleep
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d2eaddcd278a00f25792bf06f046b39aa321abe3
7b75bc4d48455b89dc62158a16564821d6a9348e
2 changes: 1 addition & 1 deletion pingora-core/src/connectors/l4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub trait Connect: std::fmt::Debug {
}

/// Establish a connection (l4) to the given peer using its settings and an optional bind address.
pub async fn connect<P>(peer: &P, bind_to: Option<InetSocketAddr>) -> Result<Stream>
pub(crate) async fn connect<P>(peer: &P, bind_to: Option<InetSocketAddr>) -> Result<Stream>
where
P: Peer + Send + Sync,
{
Expand Down
2 changes: 1 addition & 1 deletion pingora-core/src/connectors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//! Connecting to servers
pub mod http;
mod l4;
pub mod l4;
mod offload;
mod tls;

Expand Down

0 comments on commit 91702bb

Please sign in to comment.