From 256d049b7ac24f40bb1df691fe014853b75bf491 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 25 Jan 2020 04:44:57 +0000 Subject: view: start performing buffering into {obuf} Get rid of the confusingly named {rv} and {tip} fields and unify them into {obuf} for readability. {obuf} usage may be expanded to more areas in the future. This will eventually make it easier for us to experiment with alternative buffering schemes. --- lib/PublicInbox/ViewVCS.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/ViewVCS.pm') diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm index ead8c2b4..fdca70cb 100644 --- a/lib/PublicInbox/ViewVCS.pm +++ b/lib/PublicInbox/ViewVCS.pm @@ -33,14 +33,14 @@ my $BIN_DETECT = 8000; # same as git sub html_i { # WwwStream::getline callback my ($nr, $ctx) = @_; - $nr == 1 ? ${delete $ctx->{rv}} : undef; + $nr == 1 ? ${delete $ctx->{obuf}} : undef; } sub html_page ($$$) { my ($ctx, $code, $strref) = @_; my $wcb = delete $ctx->{-wcb}; $ctx->{-upfx} = '../../'; # from "/$INBOX/$OID/s/" - $ctx->{rv} = $strref; + $ctx->{obuf} = $strref; my $res = PublicInbox::WwwStream->response($ctx, $code, \&html_i); $wcb ? $wcb->($res) : $res; } -- cgit v1.2.3-24-ge0c7