mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
update comments
This commit is contained in:
parent
053c078e11
commit
2e17858a39
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue