You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hy...@apache.org on 2019/11/29 08:24:17 UTC
[dubbo-website] branch master updated: fix typo in
LeastActiveLoadBalance (#533)
This is an automated email from the ASF dual-hosted git repository.
hyunkun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new 723f552 fix typo in LeastActiveLoadBalance (#533)
723f552 is described below
commit 723f552e4c371c378691d46fd76784ed7f4ce4e8
Author: thisiswanghy <th...@outlook.com>
AuthorDate: Fri Nov 29 16:24:08 2019 +0800
fix typo in LeastActiveLoadBalance (#533)
---
docs/zh-cn/source_code_guide/loadbalance.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/zh-cn/source_code_guide/loadbalance.md b/docs/zh-cn/source_code_guide/loadbalance.md
index 048ec20..6036c8b 100644
--- a/docs/zh-cn/source_code_guide/loadbalance.md
+++ b/docs/zh-cn/source_code_guide/loadbalance.md
@@ -240,7 +240,7 @@ offsetWeight -= getWeight(invokers.get(leastIndex), invocation);
int afterWarmup = getWeight(invoker, invocation);
```
-另外,2.6.4 版本中的 LeastActiveLoadBalance 还要一个缺陷,即当一组 Invoker 具有相同的最小活跃数,且其中一个 Invoker 的权重值为1,此时这个 Invoker 无法被选中。缺陷代码如下:
+另外,2.6.4 版本中的 LeastActiveLoadBalance 还有一个缺陷,即当一组 Invoker 具有相同的最小活跃数,且其中一个 Invoker 的权重值为1,此时这个 Invoker 无法被选中。缺陷代码如下:
```java
int offsetWeight = random.nextInt(totalWeight);