about summary refs log tree commit homepage
path: root/t/v2writable.t
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-19 08:14:56 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-19 08:16:34 +0000
commit24294059123d4edd9e31f211d72c641a5d1a0d72 (patch)
tree3eeecf4fa6bbc084be43db893f65657fa575b00b /t/v2writable.t
parent4b802d901372c284e0a3b9e515284c9e4cbfd101 (diff)
downloadpublic-inbox-24294059123d4edd9e31f211d72c641a5d1a0d72.tar.gz
While parallel processes improves import speed for initial
imports; they are probably not necessary for daily mail imports
via WatchMaildir and certainly not for public-inbox-init.  Save
some memory for daily use and even helps improve readability of
some subroutines by showing which methods they call remotely.
Diffstat (limited to 't/v2writable.t')
-rw-r--r--t/v2writable.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index 771e8c17..2088f3fe 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -108,10 +108,10 @@ if ('ensure git configs are correct') {
         ok($im->add($mime), 'message with multiple Message-ID');
         $im->done;
         my @found;
-        $ibx->search->reopen;
-        $ibx->search->each_smsg_by_mid('abcde@1', sub { push @found, @_; 1 });
+        my $srch = $ibx->search;
+        $srch->reopen->each_smsg_by_mid('abcde@1', sub { push @found, @_; 1 });
         is(scalar(@found), 1, 'message found by first MID');
-        $ibx->search->each_smsg_by_mid('abcde@2', sub { push @found, @_; 1 });
+        $srch->reopen->each_smsg_by_mid('abcde@2', sub { push @found, @_; 1 });
         is(scalar(@found), 2, 'message found by second MID');
         is($found[0]->{doc_id}, $found[1]->{doc_id}, 'same document');
         ok($found[1]->{doc_id} > 0, 'doc_id is positive');