summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorJonathan de Jong <jonathan@automatia.nl>2021-04-20 12:50:49 +0200
committerGitHub <noreply@github.com>2021-04-20 11:50:49 +0100
commit495b214f4f8f45d16ffee851c8ab7a380dd0e2b2 (patch)
tree1aa4d00ca13939808946f994545dd9f136d2d256 /synapse/rest
parentPort "Allow users to click account renewal links multiple times without hitti... (diff)
downloadsynapse-495b214f4f8f45d16ffee851c8ab7a380dd0e2b2.tar.xz
Fix (final) Bugbear violations (#9838)
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/key/v2/remote_key_resource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/key/v2/remote_key_resource.py b/synapse/rest/key/v2/remote_key_resource.py
index c57ac22e58..f648678b09 100644
--- a/synapse/rest/key/v2/remote_key_resource.py
+++ b/synapse/rest/key/v2/remote_key_resource.py
@@ -144,7 +144,7 @@ class RemoteKey(DirectServeJsonResource):
 
         # Note that the value is unused.
         cache_misses = {}  # type: Dict[str, Dict[str, int]]
-        for (server_name, key_id, from_server), results in cached.items():
+        for (server_name, key_id, _), results in cached.items():
             results = [(result["ts_added_ms"], result) for result in results]
 
             if not results and key_id is not None:
@@ -206,7 +206,7 @@ class RemoteKey(DirectServeJsonResource):
                 # Cast to bytes since postgresql returns a memoryview.
                 json_results.add(bytes(most_recent_result["key_json"]))
             else:
-                for ts_added, result in results:
+                for _, result in results:
                     # Cast to bytes since postgresql returns a memoryview.
                     json_results.add(bytes(result["key_json"]))