Skip to content

Commit

Permalink
Wait for the service to start, not to stop (hyperledger#573)
Browse files Browse the repository at this point in the history
Signed-off-by: Horacio Mijail Anton Quiles <[email protected]>

Co-authored-by: CJ Hare <[email protected]>
  • Loading branch information
hmijail and CjHare authored Mar 26, 2020
1 parent 1ca76eb commit 4fa78d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion besu/src/main/java/org/hyperledger/besu/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void start() {
besuController.getTransactionPool().getPendingTransactions().evictOldTransactions());
jsonRpc.ifPresent(service -> waitForServiceToStart("jsonRpc", service.start()));
graphQLHttp.ifPresent(service -> waitForServiceToStart("graphQLHttp", service.start()));
websocketRpc.ifPresent(service -> waitForServiceToStop("websocketRpc", service.start()));
websocketRpc.ifPresent(service -> waitForServiceToStart("websocketRpc", service.start()));
metrics.ifPresent(service -> waitForServiceToStart("metrics", service.start()));
LOG.info("Ethereum main loop is up.");
writeBesuPortsToFile();
Expand Down

0 comments on commit 4fa78d6

Please sign in to comment.