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

ConsistentHashLoadBalance selectForKey can optimization #2188

Closed
huangyunbin opened this issue Aug 6, 2018 · 3 comments
Closed

ConsistentHashLoadBalance selectForKey can optimization #2188

huangyunbin opened this issue Aug 6, 2018 · 3 comments

Comments

@huangyunbin
Copy link
Contributor

huangyunbin commented Aug 6, 2018

Map.Entry<Long, Invoker> entry = virtualInvokers.tailMap(hash, true).firstEntry();
==》
Map.Entry<Long,` Invoker> entry = virtualInvokers.ceilingEntry(hash);

huangyunbin pushed a commit to huangyunbin/dubbo that referenced this issue Aug 6, 2018
huangyunbin pushed a commit to huangyunbin/dubbo that referenced this issue Aug 6, 2018
@carryxyh
Copy link
Member

carryxyh commented Aug 6, 2018

Hi,
Would u like to send a pr ?

@huangyunbin
Copy link
Contributor Author

ok, pr is #2190

@carryxyh
Copy link
Member

carryxyh commented Aug 6, 2018

👍
Thx for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants