]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiLsSearch.pm
No ext_urls
[public-inbox.git] / lib / PublicInbox / LeiLsSearch.pm
index 6cea6ae88089935d4f31a69bf9845ef8dad39dc4..0193e590b8b06c202d4034330e3eaf24e79e2344 100644 (file)
@@ -71,12 +71,12 @@ sub do_ls_search_long {
 
 sub bg_worker ($$$) {
        my ($lei, $pfx, $json) = @_;
-       my $self = bless { -wq_nr_workers => 1, json => $json }, __PACKAGE__;
+       my $self = bless { json => $json }, __PACKAGE__;
        my ($op_c, $ops) = $lei->workers_start($self, 1);
        $lei->{wq1} = $self;
        $self->wq_io_do('do_ls_search_long', [], $pfx);
-       $self->wq_close(1);
-       $op_c->op_wait_event($ops);
+       $self->wq_close;
+       $lei->wait_wq_events($op_c, $ops);
 }
 
 sub lei_ls_search {