aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Hauck <[email protected]>2024-08-14 13:47:41 -0700
committerKevin Guthrie <[email protected]>2024-08-23 17:53:13 -0400
commit91702bb0c0c5e1f2d5e2f40a19a3f340bb5a6d82 (patch)
treef8235906783e082dc45ab19c8ed5482463cf8e4b
parentd425379ae35b4265b23acdc829c29f0776a91c1d (diff)
downloadpingora-91702bb0c0c5e1f2d5e2f40a19a3f340bb5a6d82.tar.gz
pingora-91702bb0c0c5e1f2d5e2f40a19a3f340bb5a6d82.zip
Make l4 module pub to expose Connect
-rw-r--r--.bleep2
-rw-r--r--pingora-core/src/connectors/l4.rs2
-rw-r--r--pingora-core/src/connectors/mod.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/.bleep b/.bleep
index ceecaa7..1850ff7 100644
--- a/.bleep
+++ b/.bleep
@@ -1 +1 @@
-d2eaddcd278a00f25792bf06f046b39aa321abe3 \ No newline at end of file
+7b75bc4d48455b89dc62158a16564821d6a9348e \ No newline at end of file
diff --git a/pingora-core/src/connectors/l4.rs b/pingora-core/src/connectors/l4.rs
index d226a8b..0162034 100644
--- a/pingora-core/src/connectors/l4.rs
+++ b/pingora-core/src/connectors/l4.rs
@@ -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,
{
diff --git a/pingora-core/src/connectors/mod.rs b/pingora-core/src/connectors/mod.rs
index d13f3a9..09ed01a 100644
--- a/pingora-core/src/connectors/mod.rs
+++ b/pingora-core/src/connectors/mod.rs
@@ -15,7 +15,7 @@
//! Connecting to servers
pub mod http;
-mod l4;
+pub mod l4;
mod offload;
mod tls;