diff options
author | Eric Wong <e@80x24.org> | 2023-10-25 00:29:24 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-25 07:28:30 +0000 |
commit | f81954fe591c6a6358ba528118874313e3920e83 (patch) | |
tree | 4ac3d3a12791d97a1e986cc80eb5cde9b3924834 /lib/PublicInbox/Config.pm | |
parent | 5061fda82a5df67f12b0b392bdad481cc07aa283 (diff) | |
download | public-inbox-f81954fe591c6a6358ba528118874313e3920e83.tar.gz |
It's slightly better organized this way, especially since `publicinboxLimiter' has its own user-facing config section and knobs. I may use it in LeiMirror and CodeSearchIdx for process management.
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 15e0872e..d156b2d3 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -124,9 +124,9 @@ sub lookup_newsgroup { sub limiter { my ($self, $name) = @_; $self->{-limiters}->{$name} //= do { - require PublicInbox::Qspawn; + require PublicInbox::Limiter; my $max = $self->{"publicinboxlimiter.$name.max"} || 1; - my $limiter = PublicInbox::Qspawn::Limiter->new($max); + my $limiter = PublicInbox::Limiter->new($max); $limiter->setup_rlimit($name, $self); $limiter; }; |