about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiQuery.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/LeiQuery.pm')
-rw-r--r--lib/PublicInbox/LeiQuery.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm
index 1a3e1193..69d2f9a6 100644
--- a/lib/PublicInbox/LeiQuery.pm
+++ b/lib/PublicInbox/LeiQuery.pm
@@ -26,14 +26,13 @@ sub lei_q {
         my $sto = $self->_lei_store(1);
         my $cfg = $self->_lei_cfg(1);
         my $opt = $self->{opt};
-        require PublicInbox::LeiDedupe;
-        my $dd = PublicInbox::LeiDedupe->new($self);
 
         # --local is enabled by default
         # src: LeiXSearch || LeiSearch || Inbox
         my @srcs;
         require PublicInbox::LeiXSearch;
         require PublicInbox::LeiOverview;
+        require PublicInbox::LeiDedupe;
         my $lxs = PublicInbox::LeiXSearch->new;
 
         # --external is enabled by default, but allow --no-external
@@ -49,8 +48,8 @@ sub lei_q {
 
         unshift(@srcs, $sto->search) if $opt->{'local'};
         # no forking workers after this
-        require PublicInbox::LeiOverview;
         $self->{ovv} = PublicInbox::LeiOverview->new($self);
+        $self->{dd} = PublicInbox::LeiDedupe->new($self);
         my %mset_opt = map { $_ => $opt->{$_} } qw(thread limit offset);
         $mset_opt{asc} = $opt->{'reverse'} ? 1 : 0;
         $mset_opt{qstr} = join(' ', map {;