From 55263c56cf41c87f8977cd6a6be65ac07b5cea87 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 5 Jul 2020 23:27:39 +0000 Subject: wwwstream: reduce blob fetch paths for ->getline This will make it easier to support asynchronous blob retrievals. The `$ctx->{nr}' counter is no longer implicitly supplied since many users didn't care for it, so stack overhead is slightly reduced. --- lib/PublicInbox/Feed.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/Feed.pm') diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index f25dd267..b15fc3a0 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -50,7 +50,8 @@ sub generate_html_index { } sub new_html_i { - my ($nr, $ctx) = @_; + my ($ctx) = @_; + return $ctx->html_top if exists $ctx->{-html_tip}; my $msgs = $ctx->{msgs}; while (my $smsg = shift @$msgs) { my $eml = $ctx->{-inbox}->smsg_eml($smsg) or next; -- cgit v1.2.3-24-ge0c7