diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-05-11 13:31:29 +0200 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-05-11 13:31:29 +0200 |
commit | 260b498ee53a6e91b2063ef70c26bc300df583e8 (patch) | |
tree | a364b16c6f205b6ba0ab4cd0264a0ef3ea184b1a /synapse/handlers/message.py | |
parent | Merge pull request #775 from matrix-org/erikj/password_hash (diff) | |
parent | Shuffle when we get the signing_key attribute. (diff) | |
download | synapse-260b498ee53a6e91b2063ef70c26bc300df583e8.tar.xz |
Merge pull request #776 from matrix-org/markjh/lazy_signing_key
Shuffle when we get the signing_key attribute.
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 45d3d47fc1..f9e2c98f3f 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -48,7 +48,6 @@ class MessageHandler(BaseHandler): self.clock = hs.get_clock() self.validator = EventValidator() self.snapshot_cache = SnapshotCache() - self.signing_key = hs.config.signing_key[0] @defer.inlineCallbacks def get_messages(self, requester, room_id=None, pagin_config=None, @@ -766,8 +765,9 @@ class MessageHandler(BaseHandler): yield self.auth.add_auth_events(builder, context) + signing_key = self.hs.config.signing_key[0] add_hashes_and_signatures( - builder, self.server_name, self.signing_key + builder, self.server_name, signing_key ) event = builder.build() |