mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
Always use local keypair instead of trying to find our own keys in cache
This commit is contained in:
parent
458a7458dc
commit
296824fef4
2 changed files with 10 additions and 3 deletions
|
|
@ -435,9 +435,11 @@ impl Service {
|
|||
&self,
|
||||
origin: &ServerName,
|
||||
) -> Result<Option<SigningKeys>> {
|
||||
Ok(self.db.signing_keys_for(origin)?.or_else(|| {
|
||||
(origin == self.server_name()).then(SigningKeys::load_own_keys)
|
||||
}))
|
||||
if origin == self.server_name() {
|
||||
Ok(Some(SigningKeys::load_own_keys()))
|
||||
} else {
|
||||
self.db.signing_keys_for(origin)
|
||||
}
|
||||
}
|
||||
|
||||
/// Filters the key map of multiple servers down to keys that should be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue