Make l4 module pub to expose Connect

This commit is contained in:
Andrew Hauck 2024-08-14 13:47:41 -07:00 committed by Kevin Guthrie
parent d425379ae3
commit 91702bb0c0
3 changed files with 3 additions and 3 deletions

2
.bleep
View file

@ -1 +1 @@
d2eaddcd278a00f25792bf06f046b39aa321abe3
7b75bc4d48455b89dc62158a16564821d6a9348e

View file

@ -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,
{

View file

@ -15,7 +15,7 @@
//! Connecting to servers
pub mod http;
mod l4;
pub mod l4;
mod offload;
mod tls;