]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiP2q.pm
lei: simplify workers_start and callers
[public-inbox.git] / lib / PublicInbox / LeiP2q.pm
index 302d786492368c65f2c6f8cce5b09551e79820e4..4abe1345d041336a723e9651f7acf2a4ceac1646 100644 (file)
@@ -182,9 +182,7 @@ sub lei_p2q { # the "lei patch-to-query" entry point
        } else {
                $self->{input} = $input;
        }
-       my $op = $lei->workers_start($self, 'lei patch2query', 1, {
-               '' => [ $lei->{p2q_done} // $lei->can('dclose'), $lei ]
-       });
+       my $op = $lei->workers_start($self, 'lei patch2query', 1);
        $self->wq_io_do('do_p2q', []);
        $self->wq_close(1);
        while ($op && $op->{sock}) { $op->event_step }