mirror of
https://github.com/cloudflare/pingora.git
synced 2024-09-20 02:31:35 +02:00
Make l4 module pub to expose Connect
This commit is contained in:
parent
d425379ae3
commit
91702bb0c0
3 changed files with 3 additions and 3 deletions
2
.bleep
2
.bleep
|
@ -1 +1 @@
|
|||
d2eaddcd278a00f25792bf06f046b39aa321abe3
|
||||
7b75bc4d48455b89dc62158a16564821d6a9348e
|
|
@ -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,
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
//! Connecting to servers
|
||||
|
||||
pub mod http;
|
||||
mod l4;
|
||||
pub mod l4;
|
||||
mod offload;
|
||||
mod tls;
|
||||
|
||||
|
|
Loading…
Reference in a new issue