Skip to content

Commit 4ebccaf

Browse files
authored
chore: fix spelling (#3253)
1 parent e957bc3 commit 4ebccaf

28 files changed

+45
-45
lines changed

.travis/linux_openresty_common_runner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ apisix:
124124
./bin/apisix init_etcd
125125
./bin/apisix start
126126

127-
#start again --> fial
127+
#start again --> fail
128128
res=`./bin/apisix start`
129129
if ! echo "$res" | grep "APISIX is running"; then
130130
echo "failed: APISIX runs repeatedly"

apisix/core/config_util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ end
4646
-- Add a clean handler to a runtime configuration item.
4747
-- The clean handler will be called when the item is deleted from configuration
4848
-- or cancelled. Note that Nginx worker exit doesn't trigger the clean handler.
49-
-- Retuen an index so that we can cancel it later.
49+
-- Return an index so that we can cancel it later.
5050
function _M.add_clean_handler(item, func)
5151
local idx = #item.clean_handlers + 1
5252
item.clean_handlers[idx] = func

apisix/plugins/api-breaker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ end
100100

101101

102102
local function gen_lasttime_key(ctx)
103-
return "unhealthy-lastime" .. core.request.get_host(ctx) .. ctx.var.uri
103+
return "unhealthy-lasttime" .. core.request.get_host(ctx) .. ctx.var.uri
104104
end
105105

106106

apisix/plugins/http-logger.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ function _M.log(conf, ctx)
249249
data, err = core.json.encode(entries[1]) -- encode as single {}
250250
else
251251
local t = core.table.new(#entries, 0)
252-
for i, entrie in ipairs(entries) do
253-
t[i], err = core.json.encode(entrie)
252+
for i, entry in ipairs(entries) do
253+
t[i], err = core.json.encode(entry)
254254
if err then
255-
core.log.warn("failed to encode http log: ", err, ", log data: ", entrie)
255+
core.log.warn("failed to encode http log: ", err, ", log data: ", entry)
256256
break
257257
end
258258
end

docs/en/latest/control-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Return the jsonschema used by this APISIX instance in the format below:
8181
```
8282

8383
For `plugins` part, only enabled plugins will be returned. Some plugins may lack
84-
of fields like `consumer_schema` or `type`, it is dependended by the plugin's
84+
of fields like `consumer_schema` or `type`, it is depended on by the plugin's
8585
definition.
8686

8787
### GET /v1/healthcheck

docs/en/latest/plugins/api-breaker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ the code logic automatically **triggers the unhealthy state** incrementation of
3939

4040
Whenever the upstream service returns a status code from the `unhealthy.http_statuses` configuration (e.g., 500), up to `unhealthy.failures` (e.g., three times) and considers the upstream service to be in an unhealthy state.
4141

42-
The first time unhealthy status is triggered, **breaken for 2 seconds**.
42+
The first time unhealthy status is triggered, **broken for 2 seconds**.
4343

4444
Then, the request is forwarded to the upstream service again after 2 seconds, and if the `unhealthy.http_statuses` status code is returned, and the count reaches `unhealthy.failures` again, **broken for 4 seconds**.
4545

docs/en/latest/plugins/limit-count.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Limit request rate by a fixed number of requests in a given time window.
4545
| redis_host | string | required for `redis` | | | When using the `redis` policy, this property specifies the address of the Redis server. |
4646
| redis_port | integer | optional | 6379 | [1,...] | When using the `redis` policy, this property specifies the port of the Redis server. |
4747
| redis_password | string | optional | | | When using the `redis` policy, this property specifies the password of the Redis server. |
48-
| redis_database | integer | optional | 0 | redis_database >= 0 | When using the `redis` policy, this property specifies the datatabase you selected of the Redis server, and only for non Redis cluster mode (single instance mode or Redis public cloud service that provides single entry). |
48+
| redis_database | integer | optional | 0 | redis_database >= 0 | When using the `redis` policy, this property specifies the database you selected of the Redis server, and only for non Redis cluster mode (single instance mode or Redis public cloud service that provides single entry). |
4949
| redis_timeout | integer | optional | 1000 | [1,...] | When using the `redis` policy, this property specifies the timeout in milliseconds of any command submitted to the Redis server. |
5050
| redis_cluster_nodes | array | optional | | | When using `redis-cluster` policy,This property is a list of addresses of Redis cluster service nodes. |
5151

docs/en/latest/plugins/request-validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ curl http://127.0.0.1:9080/apisix/admin/routes/5 -H 'X-API-KEY: edd1c9f034335f13
114114
"type": "object",
115115
"required": ["required_payload"],
116116
"properties": {
117-
"emum_payload": {
117+
"enum_payload": {
118118
"type": "string",
119119
"enum": ["enum_string_1", "enum_string_2"],
120120
"default": "enum_string_1"

docs/en/latest/plugins/sls-logger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ For more info on Batch-Processor in Apache APISIX please refer
4242

4343
|Name |Requirement |Description|
4444
|--------- |-------- |-----------|
45-
|host |required | IP address or the Hostname of the TCP server, please reference ali cloud log [Serve List](https://help.aliyun.com/document_detail/29008.html?spm=a2c4g.11186623.2.14.49301b4793uX0z#reference-wgx-pwq-zdb), use IP address insted of domain.|
45+
|host |required | IP address or the Hostname of the TCP server, please reference ali cloud log [Serve List](https://help.aliyun.com/document_detail/29008.html?spm=a2c4g.11186623.2.14.49301b4793uX0z#reference-wgx-pwq-zdb), use IP address instead of domain.|
4646
|port |required |Target upstream port, default 10009.|
4747
|timeout |optional |Timeout for the upstream to send data.|
4848
| project |required|Ali cloud log service project name,please create in sls before us this plugin.|

rockspec/apisix-master-0.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dependencies = {
5050
"luafilesystem = 1.7.0-2",
5151
"lua-tinyyaml = 1.0",
5252
"nginx-lua-prometheus = 0.20201218",
53-
"jsonschema = 0.9.3",
53+
"jsonschema = 0.9.4",
5454
"lua-resty-ipmatcher = 0.6",
5555
"lua-resty-kafka = 0.07",
5656
"lua-resty-logger-socket = 2.0-0",

0 commit comments

Comments
 (0)