mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
rename method
This commit is contained in:
parent
9084c10211
commit
2c3b147337
4 changed files with 5 additions and 5 deletions
|
|
@ -112,8 +112,8 @@ impl Gemini {
|
|||
/// Get `Identity` match `request`
|
||||
/// * [Client certificates specification](https://geminiprotocol.net/docs/protocol-specification.gmi#client-certificates)
|
||||
/// * this function work with memory cache (not database)
|
||||
pub fn match_request(&self, request: &str) -> Option<Identity> {
|
||||
if let Some(auth) = self.auth.memory.match_request(request) {
|
||||
pub fn match_scope(&self, request: &str) -> Option<Identity> {
|
||||
if let Some(auth) = self.auth.memory.match_scope(request) {
|
||||
match self.memory.get(auth.profile_identity_gemini_id) {
|
||||
Ok(pem) => {
|
||||
return Some(Identity {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue