mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 22:33:50 +01:00
Don't always hit get_server_verify_key_v1_direct
This commit is contained in:
parent
19505e0392
commit
253f76a0a5
1 changed files with 10 additions and 5 deletions
|
@ -164,12 +164,17 @@ class Keyring(object):
|
||||||
keys = yield self.get_server_verify_key_v2_direct(
|
keys = yield self.get_server_verify_key_v2_direct(
|
||||||
server_name, key_ids
|
server_name, key_ids
|
||||||
)
|
)
|
||||||
except:
|
except Exception as e:
|
||||||
pass
|
logging.info(
|
||||||
|
"Unable to getting key %r for %r directly: %s %s",
|
||||||
|
key_ids, server_name,
|
||||||
|
type(e).__name__, str(e.message),
|
||||||
|
)
|
||||||
|
|
||||||
keys = yield self.get_server_verify_key_v1_direct(
|
if keys is None:
|
||||||
server_name, key_ids
|
keys = yield self.get_server_verify_key_v1_direct(
|
||||||
)
|
server_name, key_ids
|
||||||
|
)
|
||||||
|
|
||||||
for key_id in key_ids:
|
for key_id in key_ids:
|
||||||
if key_id in keys:
|
if key_id in keys:
|
||||||
|
|
Loading…
Reference in a new issue