From aae8eb6de7b8ed4b1370971e91802b12da7f81aa Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 1 Jun 2020 10:06:46 +0000 Subject: wwwatomstream: convert callers to use smsg_eml We can simplify WwwAtomStream callbacks by performing ->smsg_eml calls in the `feed_entry' sub itself. This simplifies callers, by reducing the number of places which can load an Eml object into memory. --- lib/PublicInbox/SearchView.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/SearchView.pm') diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 4336e4d9..249cf539 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -340,7 +340,7 @@ sub adump_i { my $smsg = eval { PublicInbox::Smsg::from_mitem($mi, $ctx->{srch}); } or next; - $ctx->{-inbox}->smsg_mime($smsg) and return $smsg; + return $smsg; } } -- cgit v1.2.3-24-ge0c7