summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-06-26 19:09:10 +0100
committerErik Johnston <erik@matrix.org>2019-06-26 19:39:19 +0100
commit806a06daf2b30691c2c69e32d1ff2e104436bbc4 (patch)
tree0e6134f1f91c01514e9654a9c5882c893ef1d94c /synapse/storage
parentNewsfile (diff)
downloadsynapse-806a06daf2b30691c2c69e32d1ff2e104436bbc4.tar.xz
Rename get_users_whose_devices_changed
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/devices.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/devices.py b/synapse/storage/devices.py
index 3af0171f75..97f6cd2754 100644
--- a/synapse/storage/devices.py
+++ b/synapse/storage/devices.py
@@ -391,7 +391,7 @@ class DeviceWorkerStore(SQLBaseStore):
 
         return now_stream_id, []
 
-    def get_user_whose_devices_changed(self, from_key, user_ids):
+    def get_users_whose_devices_changed(self, from_key, user_ids):
         """Get set of users whose devices have changed since `from_key` that
         are in the given list of user_ids.
 
@@ -426,7 +426,7 @@ class DeviceWorkerStore(SQLBaseStore):
             AND user_id IN (%s)
         """
 
-        def _get_user_whose_devices_changed_txn(txn):
+        def _get_users_whose_devices_changed_txn(txn):
             changes = set()
 
             for chunk in chunks:
@@ -436,7 +436,7 @@ class DeviceWorkerStore(SQLBaseStore):
             return changes
 
         return self.runInteraction(
-            "get_user_whose_devices_changed", _get_user_whose_devices_changed_txn
+            "get_users_whose_devices_changed", _get_users_whose_devices_changed_txn
         )
 
     def get_all_device_list_changes_for_remotes(self, from_key, to_key):