Skip to content

Commit

Permalink
Merge pull request tronprotocol#2023 from tronprotocol/decrease_cpu_u…
Browse files Browse the repository at this point in the history
…sage

decrease cpu usage
  • Loading branch information
Yrp authored Mar 1, 2019
2 parents cb0c5a3 + 43a4fdc commit bdb69b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/tron/core/db/Manager.java
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ public Set<Node> readNeighbours() {
tx = getRepushTransactions().peek();
if (tx != null) {
this.rePush(tx);
} else {
TimeUnit.MILLISECONDS.sleep(50L);
}
} catch (Exception ex) {
logger.error("unknown exception happened in repush loop", ex);
Expand Down

0 comments on commit bdb69b9

Please sign in to comment.