Fix a comma.

This commit is contained in:
wusheng 2017-07-01 09:42:04 +08:00
parent d960b80fcd
commit 5621c3b256
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class GRPCChannelManager implements BootService, Runnable {
public void run() {
while (true) {
if (RemoteDownstreamConfig.Collector.GRPC_SERVERS.size() > 0) {
int index = random.nextInt() % RemoteDownstreamConfig.Collector.GRPC_SERVERS.size()
int index = random.nextInt() % RemoteDownstreamConfig.Collector.GRPC_SERVERS.size();
String server = RemoteDownstreamConfig.Collector.GRPC_SERVERS.get(index);
try {
String[] ipAndPort = server.split(":");