about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiQuery.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-22 08:22:59 -0300
committerEric Wong <e@80x24.org>2021-02-22 18:14:23 -0400
commitc1ad789a90c274f9912d53bb1c7f1a3cc07cb233 (patch)
treee712e57f8eb7deae0ed13622bb1421d82541f05c /lib/PublicInbox/LeiQuery.pm
parent3a40128f8418d3c3bc826a1d45ca907478339190 (diff)
downloadpublic-inbox-c1ad789a90c274f9912d53bb1c7f1a3cc07cb233.tar.gz
LeiAuth is no longer a separate worker process.  Instead, it's
used directly by LeiToMail and LeiImport for sharing auth info
from the first worker to the rest of the workers, using
lei-daemon as a message router.  So drop the old code to reduce
human cognitive load and interpreter memory overhead.
Diffstat (limited to 'lib/PublicInbox/LeiQuery.pm')
-rw-r--r--lib/PublicInbox/LeiQuery.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm
index 64c9394c..214267ee 100644
--- a/lib/PublicInbox/LeiQuery.pm
+++ b/lib/PublicInbox/LeiQuery.pm
@@ -13,9 +13,9 @@ sub prep_ext { # externals_each callback
 
 sub _start_query {
         my ($self) = @_;
-        if (my $net = $self->{net}) {
+        if ($self->{net}) {
                 require PublicInbox::LeiAuth;
-                $self->{auth} = PublicInbox::LeiAuth->new($net);
+                $self->{auth} = PublicInbox::LeiAuth->new
         }
         $self->{lxs}->do_query($self);
 }