From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 8729A1F428 for ; Sun, 12 Mar 2023 22:42:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1678660928; bh=kzBNqa2FENoe5HwikZjSrmId/Cx0eCTAi9NWsx1Ignc=; h=From:To:Subject:Date:From; b=FodfvTHJvdjXCe1RdKM3MYfjHHQopTIZcAAvNwByz5BbbW1y0sjeM4BIaUmKkNTSP t3a6g3XzdOXVzByquBUTmfctPmQ26Ah6WNxlHBrdHYAdkZLicRZNp48epA/E9KkbHI FJ+Lry/R4H8z4UdAyKdGF+0VghuPJBRxuDVo/Eio= From: Eric Wong To: spew@80x24.org Subject: [PATCH 1/3] lei_mirror: describe why the {ibx} field is used Date: Sun, 12 Mar 2023 22:42:06 +0000 Message-Id: <20230312224208.1801152-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: I forgot why that hunk of code was needed :x, so maybe others will find the comment helpful, too. --- lib/PublicInbox/LeiMirror.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index c148ebfd..d878f1e4 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -194,7 +194,7 @@ sub _write_inbox_config { die "open($f): $!"; } my $cfg = PublicInbox::Config->git_config_dump($f, $self->{lei}->{2}); - my $ibx = $self->{ibx} = {}; + my $ibx = $self->{ibx} = {}; # for indexing for my $sec (grep(/\Apublicinbox\./, @{$cfg->{-section_order}})) { for (qw(address newsgroup nntpmirror)) { $ibx->{$_} = $cfg->{"$sec.$_"};