about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiImport.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/LeiImport.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/LeiImport.pm')
-rw-r--r--lib/PublicInbox/LeiImport.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiImport.pm b/lib/PublicInbox/LeiImport.pm
index bc37c628..b85f4d6c 100644
--- a/lib/PublicInbox/LeiImport.pm
+++ b/lib/PublicInbox/LeiImport.pm
@@ -112,7 +112,7 @@ sub call { # the main "lei import" method
                 $net->{quiet} = $lei->{opt}->{quiet};
                 $lei->{net} = $net;
                 require PublicInbox::LeiAuth;
-                $lei->{auth} = PublicInbox::LeiAuth->new($net);
+                $lei->{auth} = PublicInbox::LeiAuth->new;
         }
         import_start($lei);
 }