From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D797A1F934 for ; Sat, 3 Apr 2021 01:37:34 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] lei q: don't show remote progress if MUA is running Date: Fri, 2 Apr 2021 22:37:32 -0300 Message-Id: <20210403013733.1749-2-e@80x24.org> In-Reply-To: <20210403013733.1749-1-e@80x24.org> References: <20210403013733.1749-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);