From 072e6c3e7c5fe677468ed7cb21bf7e7336f8937d Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 30 Nov 2024 18:33:41 +0200 Subject: [PATCH] update comments --- src/client/session.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/session.rs b/src/client/session.rs index df45560..6999773 100644 --- a/src/client/session.rs +++ b/src/client/session.rs @@ -38,14 +38,14 @@ impl Session { /// /// * force rehandshake on user certificate change in runtime (ignore default session resumption by Glib TLS backend) pub fn update(&self, uri: &Uri, certificate: Option<&TlsCertificate>) -> Result<(), Error> { - // Get available client connections match `uri` scope + // Get cached `Client` connections match `uri` scope // https://geminiprotocol.net/docs/protocol-specification.gmi#status-60 for (request, connection) in self.index.borrow().iter() { if request.starts_with( uri.to_string_partial(UriHideFlags::QUERY | UriHideFlags::FRAGMENT) .as_str(), ) { - // Begin re-handshake on user certificate change + // Begin re-handshake on `certificate` change match connection.tls_client_connection { // User certificate session Some(ref tls_client_connection) => {