Skip to content

Commit bdb69b9

Browse files
authored
Merge pull request #2023 from tronprotocol/decrease_cpu_usage
decrease cpu usage
2 parents cb0c5a3 + 43a4fdc commit bdb69b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/tron/core/db/Manager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ public Set<Node> readNeighbours() {
389389
tx = getRepushTransactions().peek();
390390
if (tx != null) {
391391
this.rePush(tx);
392+
} else {
393+
TimeUnit.MILLISECONDS.sleep(50L);
392394
}
393395
} catch (Exception ex) {
394396
logger.error("unknown exception happened in repush loop", ex);

0 commit comments

Comments
 (0)