about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiTag.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-31 07:45:51 +0000
committerEric Wong <e@80x24.org>2021-03-31 22:27:19 +0000
commit8fa51e510fbe629a05c2da82482053f77ece7de5 (patch)
treec25e83a48644e0665595a80343b352c083f84159 /lib/PublicInbox/LeiTag.pm
parentb9dfb42d9f504c36693377f6beea98e954e7c5a9 (diff)
downloadpublic-inbox-8fa51e510fbe629a05c2da82482053f77ece7de5.tar.gz
No point in sending a command for every input when a
single one will do.  We'll also trigger LeiStore->done
sooner in the worker rather than later.
Diffstat (limited to 'lib/PublicInbox/LeiTag.pm')
-rw-r--r--lib/PublicInbox/LeiTag.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/PublicInbox/LeiTag.pm b/lib/PublicInbox/LeiTag.pm
index 8b012b16..d572a84a 100644
--- a/lib/PublicInbox/LeiTag.pm
+++ b/lib/PublicInbox/LeiTag.pm
@@ -73,8 +73,6 @@ sub tag_done_wait { # dwaitpid callback
         my ($arg, $pid) = @_;
         my ($tag, $lei) = @$arg;
         $lei->child_error($?, 'non-fatal errors during tag') if $?;
-        my $sto = delete $lei->{sto};
-        my $wait = $sto->ipc_do('done') if $sto; # PublicInbox::LeiStore::done
         $lei->dclose;
 }
 
@@ -86,9 +84,7 @@ sub tag_done { # EOF callback for main daemon
 
 sub net_merge_complete { # callback used by LeiAuth
         my ($self) = @_;
-        for my $input (@{$self->{inputs}}) {
-                $self->wq_io_do('input_path_url', [], $input);
-        }
+        $self->wq_io_do('process_inputs');
         $self->wq_close(1);
 }