]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei q: don't show remote progress if MUA is running
authorEric Wong <e@80x24.org>
Sat, 3 Apr 2021 01:37:32 +0000 (22:37 -0300)
committerEric Wong <e@80x24.org>
Sat, 3 Apr 2021 05:08:57 +0000 (05:08 +0000)
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.

lib/PublicInbox/LeiXSearch.pm

index f3b8cc25f912c7571c65cb22c5fcb85d2345057c..2b23e8e9efe1c20e55e199bb44bc8f3b4bf8e194 100644 (file)
@@ -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);