diff options
author | Eric Wong <e@80x24.org> | 2019-12-25 07:50:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-12-27 20:00:37 +0000 |
commit | 8b192073ae9e940ec066811aaa5618a1601f0565 (patch) | |
tree | 67dfec6b074c3ea649657939835e8cad7cddf72c /lib/PublicInbox/WwwAtomStream.pm | |
parent | 07c51ae017dae0ea221ba756e9c6ec46f6a587de (diff) | |
download | public-inbox-8b192073ae9e940ec066811aaa5618a1601f0565.tar.gz |
WwwStream already passes the WWW $ctx to the user-supplied callback, and it's a trivial change for WwwAtomStream to do the same. Callers in Feed.pm can now take advantage of that to save a few kilobytes of memory on every response.
Diffstat (limited to 'lib/PublicInbox/WwwAtomStream.pm')
-rw-r--r-- | lib/PublicInbox/WwwAtomStream.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WwwAtomStream.pm b/lib/PublicInbox/WwwAtomStream.pm index 83984d37..84060cfa 100644 --- a/lib/PublicInbox/WwwAtomStream.pm +++ b/lib/PublicInbox/WwwAtomStream.pm @@ -36,7 +36,7 @@ sub response { sub getline { my ($self) = @_; if (my $middle = $self->{cb}) { - my $smsg = $middle->(); + my $smsg = $middle->($self->{ctx}); return feed_entry($self, $smsg) if $smsg; } delete $self->{cb} ? '</feed>' : undef; |