diff options
author | Andrew Hauck <[email protected]> | 2024-08-14 13:47:41 -0700 |
---|---|---|
committer | Kevin Guthrie <[email protected]> | 2024-08-23 17:53:13 -0400 |
commit | 91702bb0c0c5e1f2d5e2f40a19a3f340bb5a6d82 (patch) | |
tree | f8235906783e082dc45ab19c8ed5482463cf8e4b | |
parent | d425379ae35b4265b23acdc829c29f0776a91c1d (diff) | |
download | pingora-91702bb0c0c5e1f2d5e2f40a19a3f340bb5a6d82.tar.gz pingora-91702bb0c0c5e1f2d5e2f40a19a3f340bb5a6d82.zip |
Make l4 module pub to expose Connect
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-core/src/connectors/l4.rs | 2 | ||||
-rw-r--r-- | pingora-core/src/connectors/mod.rs | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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; |