mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-02 01:55:35 +00:00
rename methods
This commit is contained in:
parent
9ebd1e03f6
commit
2079bb1167
2 changed files with 11 additions and 8 deletions
|
|
@ -38,7 +38,7 @@ impl Client {
|
|||
// Connect events
|
||||
socket.connect_event(move |_, event, _, stream| {
|
||||
// This condition have effect only for guest TLS connections
|
||||
// * for user certificates validation, use `Connection` auth
|
||||
// * for user certificates validation, use `Connection` impl
|
||||
if event == SocketClientEvent::TlsHandshaking {
|
||||
// Begin guest certificate validation
|
||||
stream
|
||||
|
|
@ -82,7 +82,7 @@ impl Client {
|
|||
.as_ref(),
|
||||
move |result| match result {
|
||||
Ok(connection) => {
|
||||
match Connection::new_for(
|
||||
match Connection::new_wrap(
|
||||
&connection,
|
||||
match certificate {
|
||||
Some(ref certificate) => Some(&certificate.tls_certificate),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue