]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiForgetSearch.pm
lei: simplify common LeiInput users with ->wq1_start
[public-inbox.git] / lib / PublicInbox / LeiForgetSearch.pm
index dfeb029322abd4fbd0e6d32b8f6f04c5620529b3..dd358ae16a3a086c90b8b0dae8a6b00670149247 100644 (file)
@@ -45,12 +45,7 @@ sub lei_forget_search {
        if ($self->{o_remote}) { # setup lei->{auth}
                $self->prepare_inputs($lei, $self->{o_remote}) or return;
        }
-       my $ops = {};
-       $lei->{auth}->op_merge($ops, $self, $lei) if $lei->{auth};
-       (my $op_c, $ops) = $lei->workers_start($self, 1, $ops);
-       $lei->{wq1} = $self;
-       net_merge_all_done($self) unless $lei->{auth};
-       $lei->wait_wq_events($op_c, $ops);
+       $lei->wq1_start($self);
 }
 
 sub do_prune {