diff options
author | Eric Wong <e@yhbt.net> | 2020-01-25 04:44:57 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-01-27 02:59:09 +0000 |
commit | 256d049b7ac24f40bb1df691fe014853b75bf491 (patch) | |
tree | 8df6dbb920dee3b13b552c5536959ebce910bfd8 /lib/PublicInbox/ViewVCS.pm | |
parent | c3d8c3df9f91aead9f6c24e1402b24e02c6a6def (diff) | |
download | public-inbox-256d049b7ac24f40bb1df691fe014853b75bf491.tar.gz |
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.
Diffstat (limited to 'lib/PublicInbox/ViewVCS.pm')
-rw-r--r-- | lib/PublicInbox/ViewVCS.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |