Skip to content

Commit

Permalink
[#Issue3205]Fix the issue of code style in client and broker modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
zongtanghu committed Aug 1, 2021
1 parent 5e58893 commit 73db297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -22,7 +22,6 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Random;
import org.apache.rocketmq.broker.BrokerController;
import org.apache.rocketmq.broker.mqtrace.SendMessageContext;
Expand Down
Expand Up @@ -32,7 +32,7 @@
public class RequestFutureTable {
private static InternalLogger log = ClientLogger.getLog();
private static ConcurrentHashMap<String, RequestResponseFuture> requestFutureTable = new ConcurrentHashMap<String, RequestResponseFuture>();
private static final AtomicInteger producerNum = new AtomicInteger(0);
private static final AtomicInteger PRODUCER_NUM = new AtomicInteger(0);

public static ConcurrentHashMap<String, RequestResponseFuture> getRequestFutureTable() {
return requestFutureTable;
Expand Down Expand Up @@ -64,6 +64,6 @@ public static void scanExpiredRequest() {
}

public static AtomicInteger getProducerNum() {
return producerNum;
return PRODUCER_NUM;
}
}

0 comments on commit 73db297

Please sign in to comment.