From: Eric Wong Date: Sat, 3 Apr 2021 01:37:32 +0000 (-0300) Subject: lei q: don't show remote progress if MUA is running X-Git-Tag: v1.7.0~832 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3811f2946efc19189ecab8ea82ea4ffaa564c1c0;p=public-inbox.git lei q: don't show remote progress if MUA is running Remote results can safely use the same mset progress reporting as local results, despite not knowing the size of the result set. We're assuming terminal MUAs, for now. --- diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index f3b8cc25..2b23e8e9 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -232,7 +232,7 @@ sub each_remote_eml { # callback for MboxReader->mboxrd if ($now > $next) { $lei->{-next_progress} = $now + 1; my $nr = $lei->{-nr_remote_eml}; - $lei->err("# $lei->{-current_url} $nr/?"); + mset_progress($lei, $lei->{-current_url}, $nr, '?'); } } $each_smsg->($smsg, undef, $eml);