about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiImport.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-06-08 09:50:20 +0000
committerEric Wong <e@80x24.org>2021-06-08 16:50:47 +0000
commitba34a69490dce6ea3ba85ee5416b6590fa0c0a39 (patch)
tree9f8a13a2957cb260ddc4b510a444c3711f96e301 /lib/PublicInbox/LeiImport.pm
parent11cf6468df48b9b9f34018cce1d20dc773322f2c (diff)
downloadpublic-inbox-ba34a69490dce6ea3ba85ee5416b6590fa0c0a39.tar.gz
op_wait_event is now more lei-specific since we no longer have
to care about oneshot and use a synchronous loop.

{ikw} (import-keywords) started a trend, but LeiPmdir (parallel
Maildir) is an upcoming WQ class that will follow this idea.

Eventually, {l2m} usage may be updated to follow this, too.
Diffstat (limited to 'lib/PublicInbox/LeiImport.pm')
-rw-r--r--lib/PublicInbox/LeiImport.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiImport.pm b/lib/PublicInbox/LeiImport.pm
index 2efd4935..222f75c8 100644
--- a/lib/PublicInbox/LeiImport.pm
+++ b/lib/PublicInbox/LeiImport.pm
@@ -91,9 +91,8 @@ sub do_import_index ($$@) {
         (my $op_c, $ops) = $lei->workers_start($self, $j, $ops);
         $lei->{wq1} = $self;
         $lei->{-err_type} = 'non-fatal';
-        $ikw->wq_close(1) if $ikw;
         net_merge_all_done($self) unless $lei->{auth};
-        $op_c->op_wait_event($ops);
+        $lei->wait_wq_events($op_c, $ops);
 }
 
 sub lei_import { # the main "lei import" method