Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Modify StoreKeyFetcher to read from server_keys_json. #15417

Merged
merged 8 commits into from
Apr 20, 2023
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _get_keys(txn: Cursor, batch: Tuple[Tuple[str, str], ...]) -> None:

# The entire signed JSON response is stored in server_keys_json,
# fetch out the bits needed.
key_json = json.loads(key_json_bytes)
key_json = json.loads(bytes(key_json_bytes))
DMRobertson marked this conversation as resolved.
Show resolved Hide resolved
key_base64 = key_json["verify_keys"][key_id]["key"]

keys[(server_name, key_id)] = FetchKeyResult(
Expand Down