diff options
author | Eric Wong <e@80x24.org> | 2023-10-25 00:29:30 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-25 07:28:34 +0000 |
commit | 82abcce5e42991db9bf8afb559a88708ff667697 (patch) | |
tree | e0805a16fc01bd2259337fef806c4d28cc295d8b /lib/PublicInbox/HTTPD/Async.pm | |
parent | 947853b0b05f08c5678fb9d9c2e8521b7be9281a (diff) | |
download | public-inbox-82abcce5e42991db9bf8afb559a88708ff667697.tar.gz |
Callers that want to requeue can call PublicInbox::DS::requeue directly and not go through the convoluted argument handling via PublicInbox::HTTPD::Async->new.
Diffstat (limited to 'lib/PublicInbox/HTTPD/Async.pm')
-rw-r--r-- | lib/PublicInbox/HTTPD/Async.pm | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/PublicInbox/HTTPD/Async.pm b/lib/PublicInbox/HTTPD/Async.pm index b73d0c4b..2e4d8baa 100644 --- a/lib/PublicInbox/HTTPD/Async.pm +++ b/lib/PublicInbox/HTTPD/Async.pm @@ -25,14 +25,6 @@ use PublicInbox::ProcessIONBF; # bidirectional socket in the future. sub new { my ($class, $io, $cb, $arg, $end_obj) = @_; - - # no $io? call $cb at the top of the next event loop to - # avoid recursion: - unless (defined($io)) { - PublicInbox::DS::requeue($cb ? $cb : $arg); - die '$end_obj unsupported w/o $io' if $end_obj; - return; - } my $self = bless { cb => $cb, # initial read callback arg => $arg, # arg for $cb |