]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiIndex.pm
imap+nntp: share COMPRESS implementation
[public-inbox.git] / lib / PublicInbox / LeiIndex.pm
index cc3e83e7e303b8d61c468298f9f0ff1bcaf67f5d..b3f3e1a0c51ae68f7f948754a3243083ca8680d8 100644 (file)
@@ -16,12 +16,12 @@ sub input_eml_cb { # used by input_maildir_cb and input_net_cb
        if (my $all_vmd = $self->{all_vmd}) {
                @$vmd{keys %$all_vmd} = values %$all_vmd;
        }
-       $self->{lei}->{sto}->ipc_do('index_eml_only', $eml, $vmd, $xoids);
+       $self->{lei}->{sto}->wq_do('index_eml_only', $eml, $vmd, $xoids);
 }
 
 sub input_fh { # overrides PublicInbox::LeiInput::input_fh
        my ($self, $ifmt, $fh, $input, @args) = @_;
-       $self->{lei}->child_error(1<<8, <<EOM);
+       $self->{lei}->child_error(0, <<EOM);
 $input ($ifmt) not yet supported, try `lei import'
 EOM
 }
@@ -35,14 +35,12 @@ sub lei_index {
 
 no warnings 'once';
 no strict 'refs';
-for my $m (qw(input_maildir_cb input_net_cb)) {
+for my $m (qw(pmdir_cb input_net_cb)) {
        *$m = PublicInbox::LeiImport->can($m);
 }
 
-*_complete_import = \&PublicInbox::LeiImport::_complete_import;
+*_complete_index = \&PublicInbox::LeiImport::_complete_import;
 *ipc_atfork_child = \&PublicInbox::LeiInput::input_only_atfork_child;
 *net_merge_all_done = \&PublicInbox::LeiInput::input_only_net_merge_all_done;
 
-# the following works even when LeiAuth is lazy-loaded
-*net_merge_all = \&PublicInbox::LeiAuth::net_merge_all;
 1;