about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
authorEric Wong <e@yhbt.net>2020-06-01 10:06:46 +0000
committerEric Wong <e@yhbt.net>2020-06-03 04:04:21 +0000
commitaae8eb6de7b8ed4b1370971e91802b12da7f81aa (patch)
tree69b1d4e1f6993098e3a35ab8d6f0a21e104044ab /lib/PublicInbox/Feed.pm
parent30ac717281ae224a9c117361ca941818adc69cf3 (diff)
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.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index e64628be..b770a350 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -12,7 +12,7 @@ use PublicInbox::Smsg; # this loads w/o Search::Xapian
 sub generate_i {
         my ($ctx) = @_;
         while (my $smsg = shift @{$ctx->{msgs}}) {
-                $ctx->{-inbox}->smsg_mime($smsg) and return $smsg;
+                return $smsg;