summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-02-19 15:21:53 +0000
committerErik Johnston <erik@matrix.org>2020-02-19 15:21:53 +0000
commit1da0457bba1bb0ac65a6829aae76a2003e330e40 (patch)
treef54c07cab168caaf18d90537257aa314ccc7f64c
parentUse batch_iter and drop conversion to list (diff)
downloadsynapse-github/erikj/minor_auth_chain_perf_improvements.tar.xz
-rw-r--r--synapse/storage/data_stores/main/event_federation.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/storage/data_stores/main/event_federation.py b/synapse/storage/data_stores/main/event_federation.py
index 9b89e56ae8..d75ab07675 100644
--- a/synapse/storage/data_stores/main/event_federation.py
+++ b/synapse/storage/data_stores/main/event_federation.py
@@ -15,19 +15,18 @@
 import itertools
 import logging
 
-from six.moves import range
 from six.moves.queue import Empty, PriorityQueue
 
 from twisted.internet import defer
 
 from synapse.api.errors import StoreError
 from synapse.metrics.background_process_metrics import run_as_background_process
-from synapse.util.iterutils import batch_iter
 from synapse.storage._base import SQLBaseStore, make_in_list_sql_clause
 from synapse.storage.data_stores.main.events_worker import EventsWorkerStore
 from synapse.storage.data_stores.main.signatures import SignatureWorkerStore
 from synapse.storage.database import Database
 from synapse.util.caches.descriptors import cached
+from synapse.util.iterutils import batch_iter
 
 logger = logging.getLogger(__name__)