You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/10/13 09:52:04 UTC

[apisix] branch master updated: docs: update batch-processor.md (#5212)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 65cfb94  docs: update batch-processor.md (#5212)
65cfb94 is described below

commit 65cfb94b1706e9eb15fc1fc1fd2d79c988a61c9e
Author: monitor1379 <mo...@users.noreply.github.com>
AuthorDate: Wed Oct 13 17:51:58 2021 +0800

    docs: update batch-processor.md (#5212)
---
 docs/en/latest/batch-processor.md | 4 ++--
 docs/zh/latest/batch-processor.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/en/latest/batch-processor.md b/docs/en/latest/batch-processor.md
index 64c96df..ef08db8 100644
--- a/docs/en/latest/batch-processor.md
+++ b/docs/en/latest/batch-processor.md
@@ -32,7 +32,7 @@ or when the buffer duration exceeds.
 
 |Name           |Requirement    |Description|
 |-------        |-----          |------|
-|id             |optional       |A unique identifier to identity the batch processor|
+|name           |optional       |A unique identifier to identity the batch processor|
 |batch_max_size |optional       |Max size of each batch, default is 1000|
 |inactive_timeout|optional      |maximum age in seconds when the buffer will be flushed if inactive, default is 5s|
 |buffer_duration|optional       |Maximum age in seconds of the oldest entry in a batch before the batch must be processed, default is 5|
@@ -43,7 +43,7 @@ The following code shows an example of how to use a batch processor. The batch p
 argument and the batch configuration as the second parameter.
 
 ```lua
-local bp = require("apisix.plugins.batch-processor")
+local bp = require("apisix.utils.batch-processor")
 local func_to_execute = function(entries)
             -- serialize to json array core.json.encode(entries)
             -- process/send data
diff --git a/docs/zh/latest/batch-processor.md b/docs/zh/latest/batch-processor.md
index 62e5b99..4071bfd 100644
--- a/docs/zh/latest/batch-processor.md
+++ b/docs/zh/latest/batch-processor.md
@@ -30,7 +30,7 @@ title: 批处理机
 
 |名称           |需求    |描述|
 |-------        |-----          |------|
-|id             |可选的       |标识批处理者的唯一标识符|
+|name           |可选的       |标识批处理者的唯一标识符|
 |batch_max_size |可选的       |每批的最大大小,默认为1000|
 |inactive_timeout|可选的      |如果不活动,将刷新缓冲区的最大时间(以秒为单位),默认值为5s|
 |buffer_duration|可选的       |必须先处理批次中最旧条目的最大期限(以秒为单位),默认是5|
@@ -40,7 +40,7 @@ title: 批处理机
 以下代码显示了如何使用批处理程序的示例。批处理处理器将要执行的功能作为第一个参数,将批处理配置作为第二个参数。
 
 ```lua
-local bp = require("apisix.plugins.batch-processor")
+local bp = require("apisix.utils.batch-processor")
 local func_to_execute = function(entries)
             -- serialize to json array core.json.encode(entries)
             -- process/send data