diff options
author | Eric Wong <e@80x24.org> | 2023-10-25 00:29:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-25 07:28:37 +0000 |
commit | 216bcbfecc330297dcd183270437d52bd8fd5243 (patch) | |
tree | ceaadbfc707813f8f973396ce5ff445658279c03 /lib/PublicInbox/RepoAtom.pm | |
parent | 92fa0f29774642b848ff23fccda51c4e34342dbe (diff) | |
download | public-inbox-216bcbfecc330297dcd183270437d52bd8fd5243.tar.gz |
To my pleasant surprise, it appears I've managed to make psgi_yield a drop-in replacement for psgi_return...
Diffstat (limited to 'lib/PublicInbox/RepoAtom.pm')
-rw-r--r-- | lib/PublicInbox/RepoAtom.pm | 4 |
1 files 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; |