summary refs log tree commit diff
path: root/synapse/storage/directory.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-10 13:47:45 +0100
committerErik Johnston <erik@matrix.org>2015-08-10 13:47:45 +0100
commit8c3a62b5c75920acbbcdcfd889228160c2a60ef5 (patch)
tree33d85a573bceaa38e57d9032b0e0570f38afaf40 /synapse/storage/directory.py
parentMerge pull request #212 from matrix-org/erikj/cache_deferreds (diff)
parentRename keyargs to args in CacheDescriptor (diff)
downloadsynapse-8c3a62b5c75920acbbcdcfd889228160c2a60ef5.tar.xz
Merge pull request #215 from matrix-org/erikj/cache_varargs_interface
Change Cache to not use *args in its interface
Diffstat (limited to 'synapse/storage/directory.py')
-rw-r--r--synapse/storage/directory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/directory.py b/synapse/storage/directory.py
index 2b2bdf8615..f3947bbe89 100644
--- a/synapse/storage/directory.py
+++ b/synapse/storage/directory.py
@@ -104,7 +104,7 @@ class DirectoryStore(SQLBaseStore):
                 },
                 desc="create_room_alias_association",
             )
-        self.get_aliases_for_room.invalidate(room_id)
+        self.get_aliases_for_room.invalidate((room_id,))
 
     @defer.inlineCallbacks
     def delete_room_alias(self, room_alias):
@@ -114,7 +114,7 @@ class DirectoryStore(SQLBaseStore):
             room_alias,
         )
 
-        self.get_aliases_for_room.invalidate(room_id)
+        self.get_aliases_for_room.invalidate((room_id,))
         defer.returnValue(room_id)
 
     def _delete_room_alias_txn(self, txn, room_alias):