Skip to content

Commit

Permalink
fix command typo (#2654)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengwenxi authored Aug 16, 2021
1 parent 69cc016 commit 1333a29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/features/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,19 +181,19 @@ When a request context is successfully created, a `context id` is returned to th

```bash
# create a repeated request context, with no callback
irisc tx service call --service-name=<service name> --data=<request input> --providers=<provider list> --service-fee-cap=1iris --timeout 50 --repeated --frequency=50 --total=100
iris tx service call --service-name=<service name> --data=<request input> --providers=<provider list> --service-fee-cap=1iris --timeout 50 --repeated --frequency=50 --total=100

# update an existing request context
irisc tx service update <request-context-id> --frequency=20 --total=200
iris tx service update <request-context-id> --frequency=20 --total=200

# pause a running request context
irisc tx service pause <request-context-id>
iris tx service pause <request-context-id>

# start a paused request context
irisc tx service start <request-context-id>
iris tx service start <request-context-id>

# permanently kill a request context
irisc tx service kill <request-context-id>
iris tx service kill <request-context-id>

# query a previously created request context by its id
iris q service request-context <request-context-id>
Expand Down
10 changes: 5 additions & 5 deletions docs/zh/features/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,19 +181,19 @@ iris q service schema pricing

```bash
# 创建一个重复性的请求上下文(无回调函数)
irisc tx service call --service-name=<service name> --data=<request input> --providers=<provider list> --service-fee-cap=1iris --timeout 50 --repeated --frequency=50 --total=100
iris tx service call --service-name=<service name> --data=<request input> --providers=<provider list> --service-fee-cap=1iris --timeout 50 --repeated --frequency=50 --total=100

# 更新一个存在的请求上下文
irisc tx service update <request-context-id> --frequency=20 --total=200
iris tx service update <request-context-id> --frequency=20 --total=200

# 暂停一个正在运行的请求上下文
irisc tx service pause <request-context-id>
iris tx service pause <request-context-id>

# 启动一个暂停的请求上下文
irisc tx service start <request-context-id>
iris tx service start <request-context-id>

# 永久终止一个请求上下文
irisc tx service kill <request-context-id>
iris tx service kill <request-context-id>

# 通过 ID 查询请求上下文
iris q service request-context <request-context-id>
Expand Down

0 comments on commit 1333a29

Please sign in to comment.