This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 30902a2 Unused/unnecessary
30902a2 is described below
commit 30902a26b4edee27ae11cabb1af06389d947eea9
Author: Sebb <[email protected]>
AuthorDate: Wed Nov 24 23:22:53 2021 +0000
Unused/unnecessary
---
tools/migrate.py | 4 ----
1 file changed, 4 deletions(-)
diff --git a/tools/migrate.py b/tools/migrate.py
index c46b8ef..0c6f401 100644
--- a/tools/migrate.py
+++ b/tools/migrate.py
@@ -33,7 +33,6 @@ import email.utils
import hashlib
import multiprocessing
import os
-import re
import time
import sys
import archiver
@@ -126,7 +125,6 @@ class MultiDocProcessor:
if bulk_array:
bulk_push(bulk_array, new_es, self.graceful)
bulk_array[:] = []
- continue
elif params == "DONE": # Close up shop completely
if bulk_array:
bulk_push(bulk_array, new_es, self.graceful)
@@ -276,8 +274,6 @@ async def main(no_jobs, graceful):
processes = MultiDocProcessor(old_es_url, new_es_url, process_document,
no_jobs)
- # processed_last_count = 0
- # current_executor = 0
docs_read = 0
async for doc in async_scan(
client=ols_es_async,