I'm not sure if we'll ever support sharing a config file
with other tools, but maybe we will, and "limiter" is
too generic.
my ($self, $name) = @_;
$self->{-limiters}->{$name} ||= do {
require PublicInbox::Qspawn;
- my $max;
- # XXX "limiter.<name>.max" was a historical mistake
- foreach my $pfx (qw(publicinboxlimiter limiter)) {
- $max ||= $self->{"$pfx.$name.max"};
- }
+ my $max = $self->{"publicinboxlimiter.$name.max"};
PublicInbox::Qspawn::Limiter->new($max);
};
}
{
my $config = PublicInbox::Config->new({
- 'limiter.named.max' => 3,
+ 'publicinboxlimiter.named.max' => 3,
"$cfgpfx.address" => 'test@example.com',
"$cfgpfx.mainrepo" => '/path/to/non/existent',
"$cfgpfx.httpbackendmax" => 'named',