rename constructor

This commit is contained in:
yggverse 2025-01-22 15:15:44 +02:00
parent 5e52e74870
commit 075b5605a0
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ impl Client {
let is_session_resumption = self.is_session_resumption;
move |result| match result {
Ok(socket_connection) => {
match Connection::new(
match Connection::build(
socket_connection,
certificate,
Some(network_address),

View file

@ -25,7 +25,7 @@ impl Connection {
// Constructors
/// Create new `Self`
pub fn new(
pub fn build(
socket_connection: SocketConnection,
certificate: Option<TlsCertificate>,
server_identity: Option<NetworkAddress>,