From c1ad789a90c274f9912d53bb1c7f1a3cc07cb233 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 22 Feb 2021 08:22:59 -0300 Subject: lei_auth: trim and remove leftover worker code 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. --- lib/PublicInbox/LeiQuery.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/LeiQuery.pm') 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); } -- cgit v1.2.3-24-ge0c7