提交 9e04e77d 编写于 作者: Y youyong205

fix the default config

上级 c315970b
......@@ -57,10 +57,10 @@ public class RouterConfigManager implements Initializable, LogEnabled {
Map<Server, Integer> map = new HashMap<Server, Integer>();
List<Server> servers = queryEnableServers();
int length = servers.size();
int index = domain.hashCode() * length;
int index = domain.hashCode();
for (int i = 0; i < 2; i++) {
map.put(servers.get((index + 1) % length), 0);
map.put(servers.get((index + i) % length), 0);
}
map.put(queryBackUpServer(), 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册