my ($self, $name) = @_;
$self->{-limiters}->{$name} ||= do {
require PublicInbox::Qspawn;
- my $key = "limiter.$name.max";
- PublicInbox::Qspawn::Limiter->new($self->{$key});
+ my $max = $self->{"publicinboxlimiter.$name.max"};
+ PublicInbox::Qspawn::Limiter->new($max);
};
}
-sub get {
- my ($self, $inbox, $key) = @_;
-
- $self->{"publicinbox.$inbox.$key"};
-}
-
sub config_dir { $ENV{PI_DIR} || "$ENV{HOME}/.public-inbox" }
sub default_file {
my $fh = popen_rd(\@cmd) or die "popen_rd failed for $file: $!\n";
my %rv;
local $/ = "\n";
- foreach my $line (<$fh>) {
+ while (defined(my $line = <$fh>)) {
chomp $line;
my ($k, $v) = split(/=/, $line, 2);
my $cur = $rv{$k};
my $rv = {};
foreach my $k (qw(mainrepo address filter url newsgroup
- infourl watch watchheader httpbackendmax)) {
+ infourl watch watchheader httpbackendmax
+ feedmax nntpserver)) {
my $v = $self->{"$pfx.$k"};
$rv->{$k} = $v if defined $v;
}