]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
rename PlackLimiter to PsgiLimiter
authorEric Wong <e@80x24.org>
Wed, 7 May 2025 00:16:34 +0000 (00:16 +0000)
committerEric Wong <e@80x24.org>
Thu, 8 May 2025 18:27:19 +0000 (18:27 +0000)
`PSGI' is probably a appropriate name since it's the name
of the interface, and `Plack' is merely the implementation
of it.

MANIFEST
lib/PublicInbox/PsgiLimiter.pm [moved from lib/PublicInbox/PlackLimiter.pm with 91% similarity]

index bc1a927847726b0abb66f71c85845c10d6c0d17f..674b544caded4c06d424112efce495e623f4ab5a 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -328,7 +328,7 @@ lib/PublicInbox/OverIdx.pm
 lib/PublicInbox/POP3.pm
 lib/PublicInbox/POP3D.pm
 lib/PublicInbox/PktOp.pm
-lib/PublicInbox/PlackLimiter.pm
+lib/PublicInbox/PsgiLimiter.pm
 lib/PublicInbox/Qspawn.pm
 lib/PublicInbox/Reply.pm
 lib/PublicInbox/RepoAtom.pm
similarity index 91%
rename from lib/PublicInbox/PlackLimiter.pm
rename to lib/PublicInbox/PsgiLimiter.pm
index 4803921219acc7a616729f3901c79d34906e4c07..32c7c2bfc991fee8b712864880004ef72f53adc5 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright (C) all contributors <meta@public-inbox.org>
 # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 # generic Plack/PSGI middleware to expose PublicInbox::Limiter, (see __END__)
-package PublicInbox::PlackLimiter;
+package PublicInbox::PsgiLimiter;
 use v5.12;
 use parent qw(Plack::Middleware);
 use PublicInbox::Limiter;
@@ -60,7 +60,7 @@ __END__
 
 =head1 NAME
 
-PublicInbox::PlackLimiter - limit concurrency to parts of a PSGI app
+PublicInbox::PsgiLimiter - limit concurrency to parts of a PSGI app
 
 =head1 SYNOPSIS
 
@@ -69,12 +69,12 @@ PublicInbox::PlackLimiter - limit concurrency to parts of a PSGI app
        builder {
 
        # by default, only 2 requests may be processed at once:
-       enable '+PublicInbox::PlackLimiter';
+       enable '+PublicInbox::PsgiLimiter';
 
        # You will likely only want to limit certain expensive endpoints,
        # while allowing maximum concurrency for inexpensive endpoints.
        # You can do that by passing a `match_cb' parameter:
-       enable '+PublicInbox::PlackLimiter',
+       enable '+PublicInbox::PsgiLimiter',
                # some expensive endpoints for my public-inbox instance, YMMV
                match_cb => sub {
                        my ($env) = @_;
@@ -96,7 +96,7 @@ PublicInbox::PlackLimiter - limit concurrency to parts of a PSGI app
 
 =head1 DESCRIPTION
 
-PublicInbox::PlackLimiter lets a sysadmin limit concurrency to certain
+PublicInbox::PsgiLimiter lets a sysadmin limit concurrency to certain
 expensive endpoints while allowing the normal concurrency level of the
 server to run inexpensive requests.