From: Eric Wong Date: Wed, 25 Oct 2023 00:29:33 +0000 (+0000) Subject: repo_atom: switch to psgi_yield X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=216bcbfecc330297dcd183270437d52bd8fd5243;p=thirdparty%2Fpublic-inbox.git repo_atom: switch to psgi_yield To my pleasant surprise, it appears I've managed to make psgi_yield a drop-in replacement for psgi_return... --- diff --git a/lib/PublicInbox/RepoAtom.pm b/lib/PublicInbox/RepoAtom.pm index 79b76c12a..b71795114 100644 --- a/lib/PublicInbox/RepoAtom.pm +++ b/lib/PublicInbox/RepoAtom.pm @@ -100,7 +100,7 @@ sub srv_tags_atom { $ctx->{-feed_title} = "$ctx->{git}->{nick} tags"; my $qsp = PublicInbox::Qspawn->new(\@cmd); $ctx->{-is_tag} = 1; - $qsp->psgi_return($ctx->{env}, undef, \&atom_ok, $ctx); + $qsp->psgi_yield($ctx->{env}, undef, \&atom_ok, $ctx); } sub srv_atom { @@ -122,7 +122,7 @@ sub srv_atom { push @cmd, $path if $path ne ''; my $qsp = PublicInbox::Qspawn->new(\@cmd, undef, { quiet => 1, 2 => $ctx->{lh} }); - $qsp->psgi_return($ctx->{env}, undef, \&atom_ok, $ctx); + $qsp->psgi_yield($ctx->{env}, undef, \&atom_ok, $ctx); } 1;