diff options
author | Eric Wong <e@80x24.org> | 2021-09-09 05:25:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-09 05:42:56 +0000 |
commit | 8df4e5f1c7020a500e977f3224a6b2fece2c5302 (patch) | |
tree | 9c5da86c40f3282adbd435659566da19e4a4bcd6 /lib/PublicInbox/Watch.pm | |
parent | 91460992d22dcb3fa8c02d245fb480b31a64cb0b (diff) | |
download | public-inbox-8df4e5f1c7020a500e977f3224a6b2fece2c5302.tar.gz |
net_reader: nntp_opt => cfg_opt
Since this our internal NNTP options are keyed by URI section, there's no need to have separate hashes for NNTP and IMAP options since they URI already distinguishes them. This will make future changes to support POP3 and JMAP and arg caching with lei/store easier.
Diffstat (limited to 'lib/PublicInbox/Watch.pm')
-rw-r--r-- | lib/PublicInbox/Watch.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Watch.pm b/lib/PublicInbox/Watch.pm index 7a35ee59..96faa9f8 100644 --- a/lib/PublicInbox/Watch.pm +++ b/lib/PublicInbox/Watch.pm @@ -549,7 +549,7 @@ sub watch_nntp_init ($$) { PublicInbox::NetReader::nntp_common_init($self); for my $uri (@{$self->{nntp_order}}) { my $sec = uri_section($uri); - my $intvl = $self->{nntp_opt}->{$sec}->{pollInterval}; + my $intvl = $self->{cfg_opt}->{$sec}->{pollInterval}; push @{$poll->{$intvl || 120}}, $uri; } } |