about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdx.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-07 01:44:51 +0000
committerEric Wong <e@80x24.org>2017-01-07 01:45:45 +0000
commit492910d43c179a7e1919b2d0f417aea9473f9730 (patch)
tree659ecf60edb181bd146a28e80612270ff5cefe18 /lib/PublicInbox/SearchIdx.pm
parentf63ea68e457f9e2618eac1d3d62227d2b605651b (diff)
downloadpublic-inbox-492910d43c179a7e1919b2d0f417aea9473f9730.tar.gz
This is faster, smaller, and more straighforward to me with
fewer layers of indirection.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r--lib/PublicInbox/SearchIdx.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index 832d1cbf..87ee0d46 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -155,7 +155,7 @@ sub add_message {
                 if ($smsg) {
                         # convert a ghost to a regular message
                         # it will also clobber any existing regular message
-                        $doc_id = $smsg->doc_id;
+                        $doc_id = $smsg->{doc_id};
                         $old_tid = $smsg->thread_id;
                 }
                 $smsg = PublicInbox::SearchMsg->new($mime);
@@ -289,7 +289,7 @@ sub link_message {
         my ($self, $smsg, $old_tid) = @_;
         my $doc = $smsg->{doc};
         my $mid = $smsg->mid;
-        my $mime = $smsg->mime;
+        my $mime = $smsg->{mime};
         my $hdr = $mime->header_obj;
         my $refs = $hdr->header_raw('References');
         my @refs = $refs ? ($refs =~ /<([^>]+)>/g) : ();