]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiRm.pm
www_stream: extra link to mirroring information in the footer
[public-inbox.git] / lib / PublicInbox / LeiRm.pm
index 185b6a1554f34ba4fd581818a768658777ae2499..578e9811495080f2d620bcb52e0900db2331152c 100644 (file)
@@ -31,7 +31,6 @@ sub input_maildir_cb {
 sub lei_rm {
        my ($lei, @inputs) = @_;
        $lei->_lei_store(1)->write_prepare($lei);
-       $lei->{opt}->{stdin} = 1 if !@inputs;
        $lei->{opt}->{'in-format'} //= 'eml';
        my $self = bless { -wq_nr_workers => 1 }, __PACKAGE__;
        $self->prepare_inputs($lei, \@inputs) or return;
@@ -39,7 +38,7 @@ sub lei_rm {
        $lei->{wq1} = $self;
        $lei->{-err_type} = 'non-fatal';
        net_merge_all_done($self) unless $lei->{auth};
-       $op_c->op_wait_event($ops);
+       $lei->wait_wq_events($op_c, $ops);
 }
 
 no warnings 'once';