pull/7095/head
Erik Johnston 2020-03-18 15:18:17 +00:00
parent f47a4177e0
commit b20946666b
1 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@
# limitations under the License.
import itertools
import logging
from typing import Dict, List, Optional, Set
from typing import Dict, List, Optional, Set, Tuple
from six.moves.queue import Empty, PriorityQueue
@ -222,7 +222,9 @@ class EventFederationWorkerStore(EventsWorkerStore, SignatureWorkerStore, SQLBas
# Assume that this event is unreachable from any of the
# state sets until proven otherwise
sets = event_to_missing_sets[auth_event_id] = set(range(len(state_sets)))
sets = event_to_missing_sets[auth_event_id] = set(
range(len(state_sets))
)
else:
# We've previously seen this event, so look up its auth
# events and recursively mark all ancestors as reachable