about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.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/Search.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/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index b59430d8..86354b57 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -282,7 +282,7 @@ sub lookup_message {
                 # raises on error:
                 my $doc = $self->{xdb}->get_document($doc_id);
                 $smsg = PublicInbox::SearchMsg->wrap($doc, $mid);
-                $smsg->doc_id($doc_id);
+                $smsg->{doc_id} = $doc_id;
         }
         $smsg;
 }