From: Eric Wong Date: Wed, 25 Oct 2023 00:29:38 +0000 (+0000) Subject: www_coderepo: use psgi_yield X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fe457251172f2f59a4e0a89be2a56913e88f2ad;p=thirdparty%2Fpublic-inbox.git www_coderepo: use psgi_yield Yet another drop-in replacement for psgi_return. --- diff --git a/lib/PublicInbox/WwwCoderepo.pm b/lib/PublicInbox/WwwCoderepo.pm index 68c4c86d7..6e19fc026 100644 --- a/lib/PublicInbox/WwwCoderepo.pm +++ b/lib/PublicInbox/WwwCoderepo.pm @@ -277,7 +277,7 @@ sub refs_foo { # /$REPO/refs/{heads,tags} endpoints $ctx->{-heads} = 1 if $pfx eq 'refs/heads'; my $qsp = PublicInbox::Qspawn->new([@EACH_REF, $pfx ], { GIT_DIR => $ctx->{git}->{git_dir} }); - $qsp->psgi_return($ctx->{env}, undef, \&_refs_parse_hdr, $ctx); + $qsp->psgi_yield($ctx->{env}, undef, \&_refs_parse_hdr, $ctx); } sub srv { # endpoint called by PublicInbox::WWW