diff options
author | Eric Wong <e@80x24.org> | 2021-09-16 00:26:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-16 04:29:11 +0000 |
commit | b4bc9aeed78078feae58d150970fe224f10098e3 (patch) | |
tree | 023713e3d70c48f253b129d72e57363aece7c171 /lib/PublicInbox/Config.pm | |
parent | add90b9504f4217af5e35b3be7e326b8c6419647 (diff) | |
download | public-inbox-b4bc9aeed78078feae58d150970fe224f10098e3.tar.gz |
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.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r-- | lib/PublicInbox/Config.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |