Skip to content

Commit a578e85

Browse files
authored
feat(api): adjust API services to start first at startup (#5711)
1 parent fd852c7 commit a578e85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/src/main/java/org/tron/common/application/ApplicationImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ public void initServices(CommonParameter parameter) {
5454
* start up the app.
5555
*/
5656
public void startup() {
57+
this.initServices(Args.getInstance());
58+
this.startServices();
5759
if ((!Args.getInstance().isSolidityNode()) && (!Args.getInstance().isP2pDisable())) {
5860
tronNetService.start();
5961
}
6062
consensusService.start();
6163
MetricsUtil.init();
62-
this.initServices(Args.getInstance());
63-
this.startServices();
6464
}
6565

6666
@Override

0 commit comments

Comments
 (0)