Skip to content

Commit

Permalink
support FastjsonUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
呈铭 committed Mar 26, 2024
1 parent 3071ad0 commit 2e9309a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static List<ProviderInfo> convertInstancesToProviders(List<Instance> allInstance
// Nacos的默认权重为1.0
// 当Nacos默认权重传入1.0,根据代码逻辑计算结果为100,与sofa-rpc默认权重一致
// 因为是接口级别,如果不同的服务具有不同的权重也不会出现被覆盖或者冲突的情况
if (nacosWeight > 0.0) {
if (nacosWeight >= 0.0) {
long weight = Math.round(providerInfo.getWeight() * nacosWeight);
providerInfo.setWeight((int) weight);
}
Expand Down

0 comments on commit 2e9309a

Please sign in to comment.