about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2024-04-24 06:44:43 +0000
committerEric Wong <e@80x24.org>2024-04-24 21:34:44 +0000
commit0d6d6d48197b3787a11c4e65f92d9e317c14f85b (patch)
treed4ff2986db617df0cd9fd574668eb2276b8a8b11
parent488958385c6b8974b8780fb44b91c481e57c2eea (diff)
downloadpublic-inbox-0d6d6d48197b3787a11c4e65f92d9e317c14f85b.tar.gz
It hasn't been used since 2016 when we started working on
improved streamability of gigantic responses.

Fixes: 95d4bf7aded4 (atom: switch to getline/close for response bodies, 2016-12-03)
-rw-r--r--lib/PublicInbox/SearchView.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm
index 2d3e942c..4016ddeb 100644
--- a/lib/PublicInbox/SearchView.pm
+++ b/lib/PublicInbox/SearchView.pm
@@ -75,7 +75,7 @@ retry:
                 $code = 404;
                 $html = "<pre>\n[No results found]</pre><hr>";
         } else {
-                return adump($_[0], $mset, $q, $ctx) if $x eq 'A';
+                return adump($mset, $q, $ctx) if $x eq 'A';
 
                 $ctx->{-html_tip} = search_nav_top($mset, $q, $ctx);
                 return mset_thread($ctx, $mset, $q) if $x eq 't';
@@ -357,7 +357,7 @@ sub ctx_prepare {
 }
 
 sub adump {
-        my ($cb, $mset, $q, $ctx) = @_;
+        my ($mset, $q, $ctx) = @_;
         $ctx->{ids} = $ctx->{ibx}->isrch->mset_to_artnums($mset);
         $ctx->{search_query} = $q; # used by WwwAtomStream::atom_header
         PublicInbox::WwwAtomStream->response($ctx, \&adump_i);