diff options
author | Eric Wong <e@80x24.org> | 2021-04-19 14:49:01 -0900 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-04-20 19:02:46 +0000 |
commit | 31ae9a28f101a3469107cc3c026e104851c5eab2 (patch) | |
tree | ca350ef409602d97b64ebf1ae6c88a59d4fc897d /lib/PublicInbox/LeiQuery.pm | |
parent | b720ab9e8e65a5cd6a34a5b08ee007254c4f6700 (diff) | |
download | public-inbox-31ae9a28f101a3469107cc3c026e104851c5eab2.tar.gz |
Users may wish to update several saved searches at once. We can support parallel updates in lei-daemon so users won't have to do it themselves via xargs or similar. Supporting IMAP outputs would be significantly more involved since we'd have to pre-authenticate for every single IMAP output before entering the redispatch loop.
Diffstat (limited to 'lib/PublicInbox/LeiQuery.pm')
-rw-r--r-- | lib/PublicInbox/LeiQuery.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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); |