From 453dee4881a9c764b09d33f3a827879f2cd3669d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 7 May 2020 21:05:45 +0000 Subject: msg_iter: pass $idx as a scalar, not array This doesn't make any difference for most multipart messages (or any single part messages). However, this starts having space savings when parts start nesting. It also slightly simplifies callers. --- lib/PublicInbox/SearchIdx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/SearchIdx.pm') diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 998341a7..f357a8fa 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -277,7 +277,7 @@ sub index_diff ($$$) { } sub index_xapian { # msg_iter callback - my $part = $_[0]->[0]; # ignore $depth and @idx + my $part = $_[0]->[0]; # ignore $depth and $idx my ($self, $doc) = @{$_[1]}; my $ct = $part->content_type || 'text/plain'; my $fn = $part->filename; -- cgit v1.2.3-24-ge0c7