mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 01:25:44 +03:00
Limit event fetches to prevent stack size from growing too large
This commit is contained in:
parent
c7a1d0aa1a
commit
81186c02a6
1 changed files with 3 additions and 1 deletions
|
@ -452,7 +452,9 @@ class DatabaseOutageTestCase(unittest.HomeserverTestCase):
|
|||
with self._outage():
|
||||
# Kick off a bunch of event fetches but do not pump the reactor
|
||||
event_deferreds = []
|
||||
for event_id in self.event_ids:
|
||||
# Limit the number of event_ids otherwise the total stack size grows too
|
||||
# large for our custom twisted patch.
|
||||
for event_id in self.event_ids[0:17]:
|
||||
event_deferreds.append(ensureDeferred(self.store.get_event(event_id)))
|
||||
|
||||
# We should have maxed out on event fetcher threads
|
||||
|
|
Loading…
Reference in a new issue