]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
search: remove auto-start for async_mset
authorEric Wong <e@80x24.org>
Fri, 26 Apr 2024 11:29:42 +0000 (11:29 +0000)
committerEric Wong <e@80x24.org>
Sun, 28 Apr 2024 17:05:32 +0000 (17:05 +0000)
Only public-facing daemons use it, currently, and all
public-facing daemons will pre-spawn it as early as feasible.
lei will need it eventually to handle queries requiring C++,
but I'm not certain what path to take with lei, yet...

lib/PublicInbox/Search.pm

index 4adef36633eff05a21676d3dc3750fc060c50e58..fbdb48a3f2a1fa350aab4a12e6e331d23138efce 100644 (file)
@@ -465,7 +465,6 @@ sub xh_opt ($) {
 # and a falsy value if handled synchronously
 sub async_mset {
        my ($self, $qry_str, $opt, $cb, @args) = @_;
-       $XHC //= xhc_start_maybe;
        if ($XHC) { # unconditionally retrieving pct + rank for now
                xdb($self); # populate {nshards}
                my @margs = ($self->xh_args, xh_opt($opt));