Skip to content

Commit 56b9a35

Browse files
authored
chore: fix typos (openresty#59)
1 parent cf47c50 commit 56b9a35

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/resty/limit/conn.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function _M.incoming(self, key, commit)
7272
end
7373

7474
if conn > max then
75-
-- make the exessive connections wait
75+
-- make the excessive connections wait
7676
return self.unit_delay * floor((conn - 1) / max), conn
7777
end
7878

lib/resty/limit/req.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ this method returns a proper delay (in seconds) for the current request so that
161161
the `rate` threshold as if it came a bit later rather than now.
162162

163163
In addition, this method
164-
also returns a second return value indicating the number of excessive reqeusts per second
164+
also returns a second return value indicating the number of excessive requests per second
165165
at this point (including the current request). This 2nd return value can be used to monitor the
166166
unadjusted incoming request rate.
167167
3. If the request exceeds the `rate` + `burst` limit, then this method returns `nil` and

lib/resty/limit/traffic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ state information returned by each of the concrete limiter object.
154154
of the [resty.limit.req](lib/resty/limit/req.md) class return the current number of excessive
155155
requests per second (if exceeding the rate threshold) while instances of the [resty.limit.conn](lib/resty/conn.md) class return the current concurrency level.
156156

157-
When missing or set to `nil`, this method does not bother outputing any state information.
157+
When missing or set to `nil`, this method does not bother outputting any state information.
158158

159159
This method returns the delay in seconds (the caller should sleep before processing
160160
the current request) across all the concrete limiter objects specified upon each

t/conn.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ failed to limit conn: rejected
7878
7979
8080
81-
=== TEST 2: a single key (somtimes not commit, and no leaving)
81+
=== TEST 2: a single key (sometimes not commit, and no leaving)
8282
--- http_config eval
8383
"
8484
$::HttpConfig

0 commit comments

Comments
 (0)