Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: i18n desc of broker_shared_subscription_strategy #10079

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions apps/emqx/i18n/emqx_schema_i18n.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1070,14 +1070,20 @@ Supported configurations are the following:
en: """Dispatch strategy for shared subscription.
- `random`: dispatch the message to a random selected subscriber
- `round_robin`: select the subscribers in a round-robin manner
- `round_robin_per_group`: select the subscribers in round-robin fashion within each shared subscriber group
- `local`: select random local subscriber otherwise select random cluster-wide
- `sticky`: always use the last selected subscriber to dispatch, until the subscriber disconnects.
- `hash`: select the subscribers by the hash of `clientIds`"""
- `hash_clientid`: select the subscribers by hashing the `clientIds`
- `hash_topic`: select the subscribers by hashing the source topic"""

zh: """共享订阅消息派发策略。
- `random`:随机挑选一个共享订阅者派发;
- `round_robin`:使用 round-robin 策略派发;
- `round_robin_per_group`: 在共享组内循环选择下一个成员;
- `local`: 选择随机的本地成员,否则选择随机的集群范围内成员;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

- `sticky`:总是使用上次选中的订阅者派发,直到它断开连接;
- `hash`:使用发送者的 Client ID 进行 Hash 来选择订阅者。"""
- `hash_clientid`:使用发送者的 Client ID 进行 Hash 来选择订阅者;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

通过对发送者的客户端 ID 进行 Hash 处理来选择订阅者

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments are addressed in #10284

- `hash_topic`: 使用源主题进行 Hash 来选择订阅者。"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

通过对源主题进行 Hash 处理来选择订阅者

}
}

Expand Down
1 change: 1 addition & 0 deletions changes/ce/fix-10079.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix description of `shared_subscription_strategy`.
2 changes: 2 additions & 0 deletions changes/ce/fix-10079.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
修正对 `shared_subscription_strategy` 的描述。