Add HomeServer.signing_key property (#7805)

... instead of duplicating `config.signing_key[0]` everywhere
This commit is contained in:
Richard van der Hoff 2020-07-08 17:51:56 +01:00 committed by GitHub
parent ef5ed5292b
commit 67593b1728
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 12 deletions

View file

@ -87,7 +87,7 @@ class FederationClient(FederationBase):
self.transport_layer = hs.get_federation_transport_client()
self.hostname = hs.hostname
self.signing_key = hs.config.signing_key[0]
self.signing_key = hs.signing_key
self._get_pdu_cache = ExpiringCache(
cache_name="get_pdu_cache",