about summary refs log tree commit homepage
path: root/lib/PublicInbox/InboxWritable.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-05 10:27:50 +0000
committerEric Wong <e@80x24.org>2021-04-05 19:10:14 +0000
commitca7b99270e0574de573d29d6ba5b8a3bbdff82c5 (patch)
treea811445aaea9a17cd75d86cb5660555ad25441da /lib/PublicInbox/InboxWritable.pm
parentcfd9e2ed62acdca0168fc3561a96f24568aff0fe (diff)
downloadpublic-inbox-ca7b99270e0574de573d29d6ba5b8a3bbdff82c5.tar.gz
We'll eventually want lei_input users like "lei import" and
"lei tag" to support parallel reads.
Diffstat (limited to 'lib/PublicInbox/InboxWritable.pm')
-rw-r--r--lib/PublicInbox/InboxWritable.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/InboxWritable.pm b/lib/PublicInbox/InboxWritable.pm
index eeebc485..45d8cdc7 100644
--- a/lib/PublicInbox/InboxWritable.pm
+++ b/lib/PublicInbox/InboxWritable.pm
@@ -154,8 +154,8 @@ sub import_maildir {
         my $im = $self->importer(1);
         my @self = $self->filter($im) ? ($self) : ();
         require PublicInbox::MdirReader;
-        PublicInbox::MdirReader::maildir_each_file(\&_each_maildir_fn,
-                                                $im, @self);
+        PublicInbox::MdirReader->new->maildir_each_file(\&_each_maildir_fn,
+                                                        $im, @self);
         $im->done;
 }