mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-29 05:08:36 -04:00
rename get_devices_by_remote to get_device_updates_by_remote
This commit is contained in:
parent
7d7eac61be
commit
bb6cec27a5
4 changed files with 14 additions and 14 deletions
|
@ -91,7 +91,7 @@ class DeviceWorkerStore(SQLBaseStore):
|
|||
|
||||
@trace
|
||||
@defer.inlineCallbacks
|
||||
def get_devices_by_remote(self, destination, from_stream_id, limit):
|
||||
def get_device_updates_by_remote(self, destination, from_stream_id, limit):
|
||||
"""Get a stream of device updates to send to the given remote server.
|
||||
|
||||
Args:
|
||||
|
@ -123,8 +123,8 @@ class DeviceWorkerStore(SQLBaseStore):
|
|||
# stream_id; the rationale being that such a large device list update
|
||||
# is likely an error.
|
||||
updates = yield self.runInteraction(
|
||||
"get_devices_by_remote",
|
||||
self._get_devices_by_remote_txn,
|
||||
"get_device_updates_by_remote",
|
||||
self._get_device_updates_by_remote_txn,
|
||||
destination,
|
||||
from_stream_id,
|
||||
now_stream_id,
|
||||
|
@ -241,7 +241,7 @@ class DeviceWorkerStore(SQLBaseStore):
|
|||
|
||||
return now_stream_id, results
|
||||
|
||||
def _get_devices_by_remote_txn(
|
||||
def _get_device_updates_by_remote_txn(
|
||||
self, txn, destination, from_stream_id, now_stream_id, limit
|
||||
):
|
||||
"""Return device update information for a given remote destination
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue