Skip to content

Commit 01320f1

Browse files
committed
rm log
1 parent b9662d1 commit 01320f1

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/main/java/org/tron/core/net/node/NodeImpl.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,6 @@ public boolean offer(BlockId blockId) {
239239

240240
private HashMap<Sha256Hash, Long> advObjWeRequested = new HashMap<>();
241241

242-
//private ConcurrentHashMap<Sha256Hash, InventoryType> advObjToFetch = new ConcurrentHashMap<>();
243-
244-
//private ConcurrentLinkedQueue<PriorItem> advObjToFetch = new ConcurrentLinkedQueue<PriorItem>();
245-
246242
private ConcurrentHashMap<Sha256Hash, PriorItem> advObjToFetch = new ConcurrentHashMap<Sha256Hash, PriorItem>();
247243

248244
private ExecutorService broadPool = Executors.newFixedThreadPool(2, new ThreadFactory() {
@@ -710,9 +706,8 @@ private void onHandleInventoryMessage(PeerConnection peer, InventoryMessage msg)
710706
peer.getAdvObjSpreadToUs().put(id, System.currentTimeMillis());
711707
if (!requested[0]) {
712708
if (!badAdvObj.containsKey(id)) {
713-
if (!advObjToFetch.contains(id)) {
709+
if (!advObjToFetch.containsKey(id)) {
714710
fetchWaterLine.increase();
715-
logger.info("water line:" + fetchWaterLine.totalCount());
716711
this.advObjToFetch.put(id, new PriorItem(new Item(id, msg.getInventoryType()),
717712
fetchSequenceCounter.incrementAndGet()));
718713
} else {

0 commit comments

Comments
 (0)