update comments

This commit is contained in:
yggverse 2024-11-27 21:42:15 +02:00
parent 053c078e11
commit 2e17858a39

View File

@ -109,9 +109,9 @@ impl Gemini {
Ok(()) Ok(())
} }
/// Get `pem` record match `request` /// Get `Identity` match `request`
/// * [Client certificates specification](https://geminiprotocol.net/docs/protocol-specification.gmi#client-certificates) /// * [Client certificates specification](https://geminiprotocol.net/docs/protocol-specification.gmi#client-certificates)
/// * this function work with memory cache collected (not database) /// * this function work with memory cache (not database)
pub fn match_priority(&self, request: &str) -> Option<Identity> { pub fn match_priority(&self, request: &str) -> Option<Identity> {
if let Some(auth) = self.auth.memory.match_priority(request) { if let Some(auth) = self.auth.memory.match_priority(request) {
match self.memory.get(auth.profile_identity_gemini_id) { match self.memory.get(auth.profile_identity_gemini_id) {