diff options
author | Eric Wong <e@80x24.org> | 2021-02-23 03:38:22 +0600 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-24 11:12:57 +0000 |
commit | 2d22af21032993d641554e6157166cb2a3c6f57b (patch) | |
tree | d3beafd0e436c47e3e34c85762ea15bb867a00ec /lib/PublicInbox/LeiXSearch.pm | |
parent | e01fe4f05196b56775fffffe23572ec648b14ec6 (diff) | |
download | public-inbox-2d22af21032993d641554e6157166cb2a3c6f57b.tar.gz |
We already localize %ENV before calling dispatch(), so it's needless overhead in spawn() to be checking env for undef values in those cases.
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r-- | lib/PublicInbox/LeiXSearch.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index 6dcadf0a..c46aba3b 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -215,7 +215,7 @@ sub query_remote_mboxrd { local $0 = "$0 query_remote_mboxrd"; local $SIG{TERM} = sub { exit(0) }; # for DESTROY (File::Temp, $reap) my $lei = $self->{lei}; - my ($opt, $env) = @$lei{qw(opt env)}; + my $opt = $lei->{opt}; my @qform = (q => $lei->{mset_opt}->{qstr}, x => 'm'); push(@qform, t => 1) if $opt->{threads}; my $verbose = $opt->{verbose}; @@ -241,7 +241,7 @@ sub query_remote_mboxrd { $uri->query_form(@qform); my $cmd = $curl->for_uri($lei, $uri); $lei->qerr("# $cmd"); - my ($fh, $pid) = popen_rd($cmd, $env, $rdr); + my ($fh, $pid) = popen_rd($cmd, undef, $rdr); $reap_curl = PublicInbox::OnDestroy->new($sigint_reap, $pid); $fh = IO::Uncompress::Gunzip->new($fh); PublicInbox::MboxReader->mboxrd($fh, \&each_eml, $self, |