about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwAtomStream.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-30 23:43:50 +0000
committerEric Wong <e@yhbt.net>2020-08-01 00:38:13 +0000
commit0821af5f21fdb083020ae2e3e79e4227ef59cd4f (patch)
tree8ecc87f31893549031b94331e9ed02a80ac5bed0 /lib/PublicInbox/WwwAtomStream.pm
parentf60f934cfe1e7a06c853741fbabbbbe3a9a747a4 (diff)
downloadpublic-inbox-0821af5f21fdb083020ae2e3e79e4227ef59cd4f.tar.gz
Although the ->async_next method does not take $self as
a receiver, but rather a PublicInbox::HTTP object, we may
still retrieve it to be called with the HTTP object via
UNIVERSAL->can.
Diffstat (limited to 'lib/PublicInbox/WwwAtomStream.pm')
-rw-r--r--lib/PublicInbox/WwwAtomStream.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/WwwAtomStream.pm b/lib/PublicInbox/WwwAtomStream.pm
index 2f9b953b..1ed806fd 100644
--- a/lib/PublicInbox/WwwAtomStream.pm
+++ b/lib/PublicInbox/WwwAtomStream.pm
@@ -35,7 +35,7 @@ sub async_next ($) {
         warn "E: $@" if $@;
 }
 
-sub async_eml { # ->{async_eml} for async_blob_cb
+sub async_eml { # for async_blob_cb
         my ($ctx, $eml) = @_;
         my $smsg = delete $ctx->{smsg};
         $ctx->{http_out}->write($ctx->translate(feed_entry($ctx, $smsg, $eml)))
@@ -45,7 +45,7 @@ sub response {
         my ($class, $ctx, $code, $cb) = @_;
         my $res_hdr = [ 'Content-Type' => 'application/atom+xml' ];
         $class->new($ctx, $cb);
-        $ctx->psgi_response($code, $res_hdr, \&async_next, \&async_eml);
+        $ctx->psgi_response($code, $res_hdr);
 }
 
 # called once for each message by PSGI server