Reuse same keyring on the implementing side

This commit is contained in:
Neil Alexander 2021-11-23 11:38:54 +00:00
parent 4e2a5ac2dc
commit 0123ed60fe
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -14,10 +14,7 @@ func (s *FederationInternalAPI) KeyRing() *gomatrixserverlib.KeyRing {
// Return a keyring that forces requests to be proxied through the
// below functions. That way we can enforce things like validity
// and keeping the cache up-to-date.
return &gomatrixserverlib.KeyRing{
KeyDatabase: s,
KeyFetchers: []gomatrixserverlib.KeyFetcher{},
}
return s.keyRing
}
func (s *FederationInternalAPI) StoreKeys(