about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiImport.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-31 03:29:47 +0500
committerEric Wong <e@80x24.org>2021-03-31 00:33:53 +0000
commita00b7214f767191580455b3895e6186c2a72febb (patch)
tree67410b83bf088f95398a9b39ff46fb1996ce4cfb /lib/PublicInbox/LeiImport.pm
parent54da988cfb049ea2ffcc7abeaa3d026224656516 (diff)
downloadpublic-inbox-a00b7214f767191580455b3895e6186c2a72febb.tar.gz
We must use the $ops hashref returned by lei->workers_start,
since it's modified to include extra handlers for auth failures
and whatnot.

Fixes: 954581b8e575966a ("lei: simplify PktOp callers")
Diffstat (limited to 'lib/PublicInbox/LeiImport.pm')
-rw-r--r--lib/PublicInbox/LeiImport.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiImport.pm b/lib/PublicInbox/LeiImport.pm
index 227a2a21..dbf655b6 100644
--- a/lib/PublicInbox/LeiImport.pm
+++ b/lib/PublicInbox/LeiImport.pm
@@ -76,7 +76,7 @@ sub lei_import { # the main "lei import" method
         my $ops = { '' => [ \&import_done, $lei ] };
         $lei->{auth}->op_merge($ops, $self) if $lei->{auth};
         $self->{-wq_nr_workers} = $j // 1; # locked
-        my ($op_c, undef) = $lei->workers_start($self, 'lei_import', $j, $ops);
+        (my $op_c, $ops) = $lei->workers_start($self, 'lei_import', $j, $ops);
         $lei->{imp} = $self;
         net_merge_complete($self) unless $lei->{auth};
         $op_c->op_wait_event($ops);