diff options
author | Eric Wong <e@yhbt.net> | 2020-06-01 10:06:46 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-03 04:04:21 +0000 |
commit | aae8eb6de7b8ed4b1370971e91802b12da7f81aa (patch) | |
tree | 69b1d4e1f6993098e3a35ab8d6f0a21e104044ab /lib/PublicInbox/Feed.pm | |
parent | 30ac717281ae224a9c117361ca941818adc69cf3 (diff) | |
download | public-inbox-aae8eb6de7b8ed4b1370971e91802b12da7f81aa.tar.gz |
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')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 2 |
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; } } |