Skip to content

Commit

Permalink
docs: typo (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbin92 authored and dead-horse committed Jun 15, 2017
1 parent 64d1b00 commit bfb8df5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/source/zh-cn/core/cluster-and-ipc.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,14 @@ if (cluster.isMaster) {

- `app.messenger.broadcast(action, data)`:发送给所有的 agent / app 进程(包括自己)
- `app.messenger.sendToApp(action, data)`: 发送给所有的 app 进程
- 在 app 调用该方法上会发送给自己和其他的 app 进程
- 在 app 上调用该方法会发送给自己和其他的 app 进程
- 在 agent 上调用该方法会发送给所有的 app 进程
- `app.messenger.sendToAgent(action, data)`: 发送给 agent 进程
- 在 app 调用该方法上会发送 agent 进程
- 在 app 上调用该方法会发送给 agent 进程
- 在 agent 上调用该方法会发送给 agent 自己
- `agent.messenger.sendRandom(action, data)`:
- app 上没有该方法(现在 Egg 的实现是等同于 sentToAgent)
- agent 上回随机发送消息给一个 app 进程(由 master 来控制发送给谁)
- agent 会随机发送消息给一个 app 进程(由 master 来控制发送给谁)
- `app.messenger.sendTo(pid, action, data)`: 发送给指定进程

```js
Expand Down
2 changes: 1 addition & 1 deletion lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class Application extends EggApplication {
}

/**
* Create an anonymouse context, the context isn't request level, so the request is mocked.
* Create an anonymous context, the context isn't request level, so the request is mocked.
* then you can use context level API like `ctx.service`
* @member {String} Application#createAnonymousContext
* @param {Request} req - if you want to mock request like querystring, you can pass an object to this function.
Expand Down

0 comments on commit bfb8df5

Please sign in to comment.