Skip to content

Commit

Permalink
[TUBEMQ-446]Small bugs fix that do not affect the main logics (apache…
Browse files Browse the repository at this point in the history
…#346)

Co-authored-by: gosonzhang <gosonzhang@tencent.com>
  • Loading branch information
2 people authored and EMsnap committed Jan 7, 2021
1 parent 1a5980b commit 8eaba3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ public static Enumeration<NetworkInterface> listNetworkInterface() {
}

public static String getIPV4LocalAddress() {
if (localIPAddress != null) {
return localIPAddress;
}
String tmpAdress = null;
try {
Enumeration<NetworkInterface> enumeration = NetworkInterface.getNetworkInterfaces();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static void main(String[] args) {
topicTidsMap.put(topicTidStr[0], tids);
}
final int startFetchCount = fetchCount;
final ExecutorService executorService = Executors.newFixedThreadPool(fetchCount);
final ExecutorService executorService = Executors.newCachedThreadPool();
for (int i = 0; i < consumerCount; i++) {
executorService.submit(new Runnable() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ protected void initCommandOptions() {
addCommandOption(CliArgDef.FETCHTHREADS);
addCommandOption(CliArgDef.CLIENTCOUNT);
addCommandOption(CliArgDef.OUTPUTINTERVAL);
addCommandOption(CliArgDef.WITHOUTDELAY);
}

public boolean parseParams(String[] args) throws Exception {
Expand Down

0 comments on commit 8eaba3a

Please sign in to comment.