From 075b5605a06862f924975dfc9db1b09ebd76a715 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 22 Jan 2025 15:15:44 +0200 Subject: [PATCH] rename constructor --- src/client.rs | 2 +- src/client/connection.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 3ae95f7..bcce693 100644 --- a/src/client.rs +++ b/src/client.rs @@ -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), diff --git a/src/client/connection.rs b/src/client/connection.rs index eae8d45..6c4ca3d 100644 --- a/src/client/connection.rs +++ b/src/client/connection.rs @@ -25,7 +25,7 @@ impl Connection { // Constructors /// Create new `Self` - pub fn new( + pub fn build( socket_connection: SocketConnection, certificate: Option, server_identity: Option,