about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-05 23:27:38 +0000
committerEric Wong <e@yhbt.net>2020-07-06 20:01:15 +0000
commit52a02a813a46940530183ede4d4cc7028290cd8f (patch)
tree4ff2be17559f6cbbe9f656aaa0a83b812b2d6bea /lib/PublicInbox/Feed.pm
parent9eac193c72e1380972f3589cb6b4f36b79183233 (diff)
downloadpublic-inbox-52a02a813a46940530183ede4d4cc7028290cd8f.tar.gz
Like with WwwAtomStream and MboxGz, we can bless the existing
$ctx object directly to avoid allocating a new hashref.  We'll
also switch from "->" to "::" to reduce stack utilization.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index 4c1056b4..f25dd267 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -70,7 +70,7 @@ sub new_html {
         $ctx->{-html_tip} = '<pre>';
         $ctx->{-upfx} = '';
         $ctx->{-hr} = 1;
-        PublicInbox::WwwStream->response($ctx, 200, \&new_html_i);
+        PublicInbox::WwwStream::response($ctx, 200, \&new_html_i);
 }
 
 # private subs