From b4bc9aeed78078feae58d150970fe224f10098e3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Sep 2021 00:26:51 +0000 Subject: inbox: streamline ->nntp_url We no longer waste a precious hash slot for a per-Inbox {nntpserver} if it's only configured globally for all inboxes. --- lib/PublicInbox/Config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/Config.pm') diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index ee5322fe..5e7a9f2b 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -424,7 +424,7 @@ sub _fill_ibx { my ($self, $name) = @_; my $pfx = "publicinbox.$name"; my $ibx = {}; - for my $k (qw(watch nntpserver)) { + for my $k (qw(watch)) { my $v = $self->{"$pfx.$k"}; $ibx->{$k} = $v if defined $v; } @@ -451,7 +451,7 @@ sub _fill_ibx { # TODO: more arrays, we should support multi-value for # more things to encourage decentralization for my $k (qw(address altid nntpmirror coderepo hide listid url - infourl watchheader)) { + infourl watchheader nntpserver)) { my $v = $self->{"$pfx.$k"} // next; $ibx->{$k} = _array($v); } -- cgit v1.2.3-24-ge0c7