summary refs log tree commit diff
path: root/synapse/storage/databases/main
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-11-11 17:04:44 +0000
committerGitHub <noreply@github.com>2021-11-11 17:04:44 +0000
commit6a605f4a77bebbbffa2ac812fbff4fe5f252d88e (patch)
tree9c62427e6d50de1e1e397007994aa2cc66b5229e /synapse/storage/databases/main
parentCorrect type hint for room_batch.py (#11310) (diff)
downloadsynapse-6a605f4a77bebbbffa2ac812fbff4fe5f252d88e.tar.xz
Get db signatures file to pass mypy (#11312)
Diffstat (limited to 'synapse/storage/databases/main')
-rw-r--r--synapse/storage/databases/main/signatures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/signatures.py b/synapse/storage/databases/main/signatures.py
index ab2159c2d3..3201623fe4 100644
--- a/synapse/storage/databases/main/signatures.py
+++ b/synapse/storage/databases/main/signatures.py
@@ -63,12 +63,12 @@ class SignatureWorkerStore(SQLBaseStore):
             A list of tuples of event ID and a mapping of algorithm to base-64 encoded hash.
         """
         hashes = await self.get_event_reference_hashes(event_ids)
-        hashes = {
+        encoded_hashes = {
             e_id: {k: encode_base64(v) for k, v in h.items() if k == "sha256"}
             for e_id, h in hashes.items()
         }
 
-        return list(hashes.items())
+        return list(encoded_hashes.items())
 
     def _get_event_reference_hashes_txn(
         self, txn: Cursor, event_id: str