diff options
author | Eric Wong <e@80x24.org> | 2021-03-31 07:45:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-31 22:27:19 +0000 |
commit | 8fa51e510fbe629a05c2da82482053f77ece7de5 (patch) | |
tree | c25e83a48644e0665595a80343b352c083f84159 /lib/PublicInbox/LeiImport.pm | |
parent | b9dfb42d9f504c36693377f6beea98e954e7c5a9 (diff) | |
download | public-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/LeiImport.pm')
-rw-r--r-- | lib/PublicInbox/LeiImport.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/PublicInbox/LeiImport.pm b/lib/PublicInbox/LeiImport.pm index dbf655b6..d33143ef 100644 --- a/lib/PublicInbox/LeiImport.pm +++ b/lib/PublicInbox/LeiImport.pm @@ -39,8 +39,6 @@ sub import_done_wait { # dwaitpid callback my ($arg, $pid) = @_; my ($imp, $lei) = @$arg; $lei->child_error($?, 'non-fatal errors during import') if $?; - my $sto = delete $lei->{sto} // return $lei->fail('BUG: {sto} gone'); - my $wait = $sto->ipc_do('done'); # PublicInbox::LeiStore::done $lei->dclose; } @@ -52,9 +50,7 @@ sub import_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); } |