Skip to content

Commit

Permalink
chore: Move string as constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zurcusa committed Aug 30, 2024
1 parent 0d2e821 commit db89e5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/limechain/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@

public class Main {

private static final String RPC_VARIABLE_NAME = "rpc";

private static final DivLogger log = new DivLogger();

public static void main(String[] args) {
log.log("Starting LimeChain node...");
exportAPI(RpcClient::sendRpcRequest, JSString.valueOf("rpc"));
exportAPI(RpcClient::sendRpcRequest, JSString.valueOf(RPC_VARIABLE_NAME));

RpcApp rpcApp = new RpcApp();
rpcApp.start();
Expand Down

0 comments on commit db89e5d

Please sign in to comment.