Skip to content

Commit 91702bb

Browse files
andrewhavckjohnhurt
authored andcommitted
Make l4 module pub to expose Connect
1 parent d425379 commit 91702bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.bleep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d2eaddcd278a00f25792bf06f046b39aa321abe3
1+
7b75bc4d48455b89dc62158a16564821d6a9348e

pingora-core/src/connectors/l4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub trait Connect: std::fmt::Debug {
3434
}
3535

3636
/// Establish a connection (l4) to the given peer using its settings and an optional bind address.
37-
pub async fn connect<P>(peer: &P, bind_to: Option<InetSocketAddr>) -> Result<Stream>
37+
pub(crate) async fn connect<P>(peer: &P, bind_to: Option<InetSocketAddr>) -> Result<Stream>
3838
where
3939
P: Peer + Send + Sync,
4040
{

pingora-core/src/connectors/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! Connecting to servers
1616
1717
pub mod http;
18-
mod l4;
18+
pub mod l4;
1919
mod offload;
2020
mod tls;
2121

0 commit comments

Comments
 (0)