mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-23 18:15:53 +03:00
Lint
This commit is contained in:
parent
dac74db74e
commit
9339b8b8ea
1 changed files with 0 additions and 5 deletions
|
@ -21,7 +21,6 @@
|
||||||
import datetime
|
import datetime
|
||||||
import itertools
|
import itertools
|
||||||
import logging
|
import logging
|
||||||
import time
|
|
||||||
from queue import Empty, PriorityQueue
|
from queue import Empty, PriorityQueue
|
||||||
from typing import (
|
from typing import (
|
||||||
TYPE_CHECKING,
|
TYPE_CHECKING,
|
||||||
|
@ -446,8 +445,6 @@ class EventFederationWorkerStore(SignatureWorkerStore, EventsWorkerStore, SQLBas
|
||||||
chains_to_fetch_sorted = SortedSet(chains_to_fetch)
|
chains_to_fetch_sorted = SortedSet(chains_to_fetch)
|
||||||
chains_to_fetch_sorted.difference_update(found_cached_chains)
|
chains_to_fetch_sorted.difference_update(found_cached_chains)
|
||||||
|
|
||||||
start_block = time.monotonic()
|
|
||||||
|
|
||||||
while chains_to_fetch_sorted:
|
while chains_to_fetch_sorted:
|
||||||
batch2 = list(chains_to_fetch_sorted.islice(-BATCH_SIZE))
|
batch2 = list(chains_to_fetch_sorted.islice(-BATCH_SIZE))
|
||||||
chains_to_fetch_sorted.difference_update(batch2)
|
chains_to_fetch_sorted.difference_update(batch2)
|
||||||
|
@ -496,8 +493,6 @@ class EventFederationWorkerStore(SignatureWorkerStore, EventsWorkerStore, SQLBas
|
||||||
|
|
||||||
yield links
|
yield links
|
||||||
|
|
||||||
end_block = time.monotonic()
|
|
||||||
|
|
||||||
def _get_auth_chain_ids_txn(
|
def _get_auth_chain_ids_txn(
|
||||||
self, txn: LoggingTransaction, event_ids: Collection[str], include_given: bool
|
self, txn: LoggingTransaction, event_ids: Collection[str], include_given: bool
|
||||||
) -> Set[str]:
|
) -> Set[str]:
|
||||||
|
|
Loading…
Reference in a new issue