To my pleasant surprise, it appears I've managed to make
psgi_yield a drop-in replacement for psgi_return...
---
lib/PublicInbox/RepoAtom.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/RepoAtom.pm b/lib/PublicInbox/RepoAtom.pm
index 79b76c12..b7179511 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;