mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
rename constructor
This commit is contained in:
parent
5e52e74870
commit
075b5605a0
2 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ impl Client {
|
||||||
let is_session_resumption = self.is_session_resumption;
|
let is_session_resumption = self.is_session_resumption;
|
||||||
move |result| match result {
|
move |result| match result {
|
||||||
Ok(socket_connection) => {
|
Ok(socket_connection) => {
|
||||||
match Connection::new(
|
match Connection::build(
|
||||||
socket_connection,
|
socket_connection,
|
||||||
certificate,
|
certificate,
|
||||||
Some(network_address),
|
Some(network_address),
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ impl Connection {
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
/// Create new `Self`
|
/// Create new `Self`
|
||||||
pub fn new(
|
pub fn build(
|
||||||
socket_connection: SocketConnection,
|
socket_connection: SocketConnection,
|
||||||
certificate: Option<TlsCertificate>,
|
certificate: Option<TlsCertificate>,
|
||||||
server_identity: Option<NetworkAddress>,
|
server_identity: Option<NetworkAddress>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue