mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 14:39:29 -05:00
Jump out early
This commit is contained in:
parent
656223fbd3
commit
7d6a1dae31
@ -883,6 +883,12 @@ class SQLBaseStore(object):
|
|||||||
|
|
||||||
missing_events_ids = [e for e in event_ids if e not in event_map]
|
missing_events_ids = [e for e in event_ids if e not in event_map]
|
||||||
|
|
||||||
|
if not missing_events_ids:
|
||||||
|
defer.returnValue([
|
||||||
|
event_map[e_id] for e_id in event_ids
|
||||||
|
if e_id in event_map and event_map[e_id]
|
||||||
|
])
|
||||||
|
|
||||||
def get_missing(txn):
|
def get_missing(txn):
|
||||||
missing_events = unwrap_deferred(self._fetch_events(
|
missing_events = unwrap_deferred(self._fetch_events(
|
||||||
txn,
|
txn,
|
||||||
|
Loading…
Reference in New Issue
Block a user