mirror of https://github.com/apache/druid.git
simplify things a bit
This commit is contained in:
parent
632d6b0a78
commit
ca90530085
|
@ -26,11 +26,7 @@ import java.util.Set;
|
||||||
|
|
||||||
public class RandomServerSelectorStrategy implements ServerSelectorStrategy
|
public class RandomServerSelectorStrategy implements ServerSelectorStrategy
|
||||||
{
|
{
|
||||||
Random random;
|
private static final Random random = new Random();
|
||||||
|
|
||||||
public RandomServerSelectorStrategy() {
|
|
||||||
this.random = new Random();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public QueryableDruidServer pick(Set<QueryableDruidServer> servers)
|
public QueryableDruidServer pick(Set<QueryableDruidServer> servers)
|
||||||
|
|
Loading…
Reference in New Issue