Skip to content

Commit

Permalink
tt
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzhenkun committed Jul 23, 2018
1 parent d4eb22e commit 4a40f63
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class LoadBalance {
* @return
*/
public static Address loadbalance(String serviceName){

ServiceParams serviceParams = KRPC.getService(serviceName);
int total = serviceParams.getAddresses().size();
int index = (int) (System.currentTimeMillis()%total);
Expand Down

0 comments on commit 4a40f63

Please sign in to comment.