Skip to content

Commit

Permalink
doc: fix doc style of plugin fault-injection (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
gxthrj authored Mar 22, 2020
1 parent 56b6a6e commit 766e99f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions doc/plugins/fault-injection-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
#
-->

[English](fault-injection.md)
# [English](fault-injection.md)

# fault-injection

故障注入插件,该插件可以和其他插件一起使用,并且会在其他插件前被执行,配置 `abort` 参数将直接返回给客户端指定的响应码并且终止其他插件的执行,配置 `delay` 参数将延迟某个请求,并且还会执行配置的其他插件。

### 参数
## 参数

|名称 |必须|描述|
|------- |-----|------|
Expand All @@ -33,9 +33,9 @@

注:参数 abort 和 delay 至少要存在一个

### 示例
## 示例

#### 启用插件
### 启用插件

示例1:为特定路由启用 `fault-injection` 插件,并指定 `abort` 参数:

Expand Down Expand Up @@ -117,8 +117,7 @@ user 0m0.007s
sys 0m0.010s
```


#### 禁用插件
### 禁用插件

移除插件配置中相应的 JSON 配置可立即禁用该插件,无需重启服务:

Expand Down

0 comments on commit 766e99f

Please sign in to comment.