about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-10-27 07:54:47 +0000
committerEric Wong <e@80x24.org>2020-11-07 10:22:07 +0000
commita624577bd7417759b7428266da7e6f5a3413bc8e (patch)
tree0c8f4fcd40b9aa5a3b750994a7f75ba8ec4f628b
parentf316b291e50f8d82eb067fbbe777ca3ffe5d7ae4 (diff)
downloadpublic-inbox-a624577bd7417759b7428266da7e6f5a3413bc8e.tar.gz
We'll probably still need synchronous message retrieval
in a few places (tests, at least).
-rw-r--r--lib/PublicInbox/ExtSearch.pm4
-rw-r--r--lib/PublicInbox/Inbox.pm2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/PublicInbox/ExtSearch.pm b/lib/PublicInbox/ExtSearch.pm
index 8997cd54..3e8ca82c 100644
--- a/lib/PublicInbox/ExtSearch.pm
+++ b/lib/PublicInbox/ExtSearch.pm
@@ -7,6 +7,7 @@ package PublicInbox::ExtSearch;
 use strict;
 use v5.10.1;
 use PublicInbox::Over;
+use PublicInbox::Inbox;
 
 # for ->reopen, ->mset, ->mset_to_artnums
 use parent qw(PublicInbox::Search);
@@ -37,4 +38,7 @@ sub git {
         $self->{git} //= PublicInbox::Git->new("$self->{topdir}/ALL.git");
 }
 
+no warnings 'once';
+*smsg_eml = \&PublicInbox::Inbox::smsg_eml;
+
 1;
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index cbb95b8d..cd5c098a 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -331,7 +331,7 @@ sub msg_by_smsg ($$) {
         return unless defined $smsg;
         defined(my $blob = $smsg->{blob}) or return;
 
-        git($self)->cat_file($blob);
+        $self->git->cat_file($blob);
 }
 
 sub smsg_eml {