Skip to content
Snippets Groups Projects
Commit 5469e2e6 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

init

parent ab6d7646
No related branches found
No related tags found
No related merge requests found
Pipeline #744 failed with stages
in 15 seconds
......@@ -20,7 +20,7 @@ import java.util.concurrent.ThreadLocalRandom;
*/
public class UserLoadBalance implements LoadBalance {
private int n = 0;
private int[] peers = {0,0,0,1,1,2};
private int[] peers = {0,1,1,2,2,2};
@Override
public <T> Invoker<T> select(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException {
++n;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment