X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FLeiQuery.pm;fp=lib%2FPublicInbox%2FLeiQuery.pm;h=4099b26c85ce87e4b0005f98008987d2e518d72b;hb=31ae9a28f101a3469107cc3c026e104851c5eab2;hp=385ba0a9b4cad38af59a23913b703344eb05339f;hpb=b720ab9e8e65a5cd6a34a5b08ee007254c4f6700;p=public-inbox.git diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index 385ba0a9..4099b26c 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -14,6 +14,7 @@ sub prep_ext { # externals_each callback sub _start_query { # used by "lei q" and "lei up" my ($self) = @_; + require PublicInbox::LeiOverview; PublicInbox::LeiOverview->new($self) or return; my $opt = $self->{opt}; my ($xj, $mj) = split(/,/, $opt->{jobs} // ''); @@ -117,7 +118,6 @@ sub lxs_prepare { # the main "lei q SEARCH_TERMS" method sub lei_q { my ($self, @argv) = @_; - require PublicInbox::LeiOverview; PublicInbox::Config->json; # preload before forking my $lxs = lxs_prepare($self) or return; $self->ale->refresh_externals($lxs);