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/Inbox.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/Inbox.pm')
-rw-r--r-- | lib/PublicInbox/Inbox.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index 9afbb478..3dad7004 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -55,8 +55,8 @@ sub _set_limiter ($$$) { my $val = $self->{$mkey} or return; my $lim; if ($val =~ /\A[0-9]+\z/) { - require PublicInbox::Qspawn; - $lim = PublicInbox::Qspawn::Limiter->new($val); + require PublicInbox::Limiter; + $lim = PublicInbox::Limiter->new($val); } elsif ($val =~ /\A[a-z][a-z0-9]*\z/) { $lim = $pi_cfg->limiter($val); warn "$mkey limiter=$val not found\n" if !$lim; |