mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 14:14:56 -04:00
Prevent multiple device list updates from breaking a batch send (#5156)
fixes #5153
This commit is contained in:
parent
a11865016e
commit
2d1d7b7e6f
4 changed files with 198 additions and 33 deletions
|
@ -349,9 +349,10 @@ class PerDestinationQueue(object):
|
|||
@defer.inlineCallbacks
|
||||
def _get_new_device_messages(self, limit):
|
||||
last_device_list = self._last_device_list_stream_id
|
||||
# Will return at most 20 entries
|
||||
|
||||
# Retrieve list of new device updates to send to the destination
|
||||
now_stream_id, results = yield self._store.get_devices_by_remote(
|
||||
self._destination, last_device_list
|
||||
self._destination, last_device_list, limit=limit,
|
||||
)
|
||||
edus = [
|
||||
Edu(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue