sofastack / sofa-rpc-node

SOFARPC Node is a high-performance, high-extensibility, production-level Nodejs RPC framework.
MIT License
612 stars 64 forks source link

refactor: choose addresses in loadbalancer #49

Closed gxcsoccer closed 5 years ago

gxcsoccer commented 5 years ago

重构负载均衡逻辑,将选择地址的逻辑移到 loadbalancer 里

codecov-io commented 5 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@1c0092e). Click here to learn what that means. The diff coverage is 97.95%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #49   +/-   ##
=========================================
  Coverage          ?   98.59%           
=========================================
  Files             ?       38           
  Lines             ?     1925           
  Branches          ?        0           
=========================================
  Hits              ?     1898           
  Misses            ?       27           
  Partials          ?        0
Impacted Files Coverage Δ
lib/client/dynamic_config.js 100% <ø> (ø)
lib/client/loadbalancer/consistent_hash.js 100% <100%> (ø)
lib/client/address_group.js 98.94% <100%> (ø)
lib/client/utils.js 100% <100%> (ø)
lib/client/loadbalancer/weight_rr.js 100% <100%> (ø)
lib/client/loadbalancer/base.js 97.14% <96.66%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1c0092e...502edf2. Read the comment docs.

gxcsoccer commented 5 years ago

sofa-rpc-node@1.13.0