summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-02-19 11:34:40 +0000
committerErik Johnston <erik@matrix.org>2019-02-19 11:34:40 +0000
commit1bb35e3a83146a55bf7d8a18d38aa0d59f1289d5 (patch)
treebdda1f95cd1fe5ab71770883e0ce5602f9ebf76c /synapse
parentDocumentation (diff)
downloadsynapse-1bb35e3a83146a55bf7d8a18d38aa0d59f1289d5.tar.xz
Use itertools
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 1c8d3f0026..9db594bc42 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -12,6 +12,7 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+import itertools
 import logging
 import sys
 import threading
@@ -1204,8 +1205,7 @@ class SQLBaseStore(object):
         """
         txn.call_after(self._invalidate_state_caches, room_id, members_changed)
 
-        keys = [room_id]
-        keys.extend(members_changed)
+        keys = itertools.chain([room_id], members_changed)
         self._send_invalidation_to_replication(
             txn, _CURRENT_STATE_CACHE_NAME, keys,
         )